{smcl}
{com}{sf}{ul off}{txt}
{com}. set more off
{txt}
{com}. 
. // Open dataset:
. 
. use "garcia_wimpy_psrm.dta", clear
{txt}
{com}. 
. // PRODUCE SUMMARY STATS FOR TABLE 1 IN ARTICLE
. 
. summarize  agv agvy1_spatlag mobile internet repress_lag ///
> percent_pop_refugee polity ln_gdppc ln_pop ethnic election urban

{txt}    Variable {c |}       Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 56}
{space 9}agv {c |}{res}       528    .7159091    2.552443          0         38
{txt}agvy1_spat~g {c |}{res}       528    1.377323    1.632621          0   9.955131
{txt}{space 6}mobile {c |}{res}       524    25.41444    30.55512          0   171.5155
{txt}{space 4}internet {c |}{res}       521    4.247373    6.724145   .0059021         51
{txt}{space 1}repress_lag {c |}{res}       484    .6880165    .4637825          0          1
{txt}{hline 13}{c +}{hline 56}
percent_po~e {c |}{res}       528    .0039918     .006745          0   .0511827
{txt}{space 6}polity {c |}{res}       527    .8235294    5.103974         -9          9
{txt}{space 4}ln_gdppc {c |}{res}       526    6.565309     1.08703   4.518534   9.671144
{txt}{space 6}ln_pop {c |}{res}       528    16.14175     1.19002   13.82624   18.90601
{txt}{space 6}ethnic {c |}{res}       528    .6560845    .2276178      .0394    .930175
{txt}{hline 13}{c +}{hline 56}
{space 4}election {c |}{res}       528     .219697     .414434          0          1
{txt}{space 7}urban {c |}{res}       528    38.41165     17.5023      8.246    86.1478
{txt}
{com}. 
. *******************************************************************************
. 
. // MODELS FOR TABLE 2 IN ARTICLE
. 
. // Mobile
. 
. nbreg agv c.agvy1_spatlag##c.mobile agvy1_ylag repress_lag polity polity2 ///
> ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant)
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      477
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  2154.29
{txt}Log pseudolikelihood = {res}-378.12229                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 90:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}                     agv{col 26}{c |}      Coef.{col 38}   Std. Err.{col 50}      z{col 58}   P>|z|{col 66}     [95% Con{col 79}f. Interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}agvy1_spatlag {c |}{col 26}{res}{space 2}-.1551829{col 38}{space 2}  .119444{col 49}{space 1}   -1.30{col 58}{space 3}0.194{col 66}{space 4}-.3892889{col 79}{space 3} .0789231
{txt}{space 18}mobile {c |}{col 26}{res}{space 2} -.008873{col 38}{space 2}  .008944{col 49}{space 1}   -0.99{col 58}{space 3}0.321{col 66}{space 4}-.0264028{col 79}{space 3} .0086569
{txt}{space 24} {c |}
c.agvy1_spatlag#c.mobile {c |}{col 26}{res}{space 2} .0055614{col 38}{space 2} .0026784{col 49}{space 1}    2.08{col 58}{space 3}0.038{col 66}{space 4} .0003119{col 79}{space 3} .0108109
{txt}{space 24} {c |}
{space 14}agvy1_ylag {c |}{col 26}{res}{space 2} 1.118672{col 38}{space 2} .1376691{col 49}{space 1}    8.13{col 58}{space 3}0.000{col 66}{space 4} .8488451{col 79}{space 3} 1.388498
{txt}{space 13}repress_lag {c |}{col 26}{res}{space 2} .3804949{col 38}{space 2} .2945423{col 49}{space 1}    1.29{col 58}{space 3}0.196{col 66}{space 4}-.1967974{col 79}{space 3} .9577873
{txt}{space 18}polity {c |}{col 26}{res}{space 2}-.0019155{col 38}{space 2} .0270008{col 49}{space 1}   -0.07{col 58}{space 3}0.943{col 66}{space 4}-.0548362{col 79}{space 3} .0510052
{txt}{space 17}polity2 {c |}{col 26}{res}{space 2} .0007506{col 38}{space 2} .0053616{col 49}{space 1}    0.14{col 58}{space 3}0.889{col 66}{space 4} -.009758{col 79}{space 3} .0112592
{txt}{space 16}ln_gdppc {c |}{col 26}{res}{space 2}-.0594622{col 38}{space 2} .2096428{col 49}{space 1}   -0.28{col 58}{space 3}0.777{col 66}{space 4}-.4703545{col 79}{space 3} .3514301
{txt}{space 18}ln_pop {c |}{col 26}{res}{space 2} .3509825{col 38}{space 2} .1255663{col 49}{space 1}    2.80{col 58}{space 3}0.005{col 66}{space 4} .1048771{col 79}{space 3}  .597088
{txt}{space 18}ethnic {c |}{col 26}{res}{space 2} .2756098{col 38}{space 2} .4764331{col 49}{space 1}    0.58{col 58}{space 3}0.563{col 66}{space 4}-.6581818{col 79}{space 3} 1.209401
{txt}{space 16}election {c |}{col 26}{res}{space 2} .2607885{col 38}{space 2} .2003947{col 49}{space 1}    1.30{col 58}{space 3}0.193{col 66}{space 4} -.131978{col 79}{space 3} .6535549
{txt}{space 19}urban {c |}{col 26}{res}{space 2} .0006057{col 38}{space 2} .0114171{col 49}{space 1}    0.05{col 58}{space 3}0.958{col 66}{space 4}-.0217715{col 79}{space 3} .0229828
{txt}{space 5}percent_pop_refugee {c |}{col 26}{res}{space 2} 9.094979{col 38}{space 2} 15.08423{col 49}{space 1}    0.60{col 58}{space 3}0.547{col 66}{space 4}-20.46956{col 79}{space 3} 38.65952
{txt}{space 24} {c |}
{space 20}year {c |}
{space 19}2002  {c |}{col 26}{res}{space 2} .9550966{col 38}{space 2} .7271492{col 49}{space 1}    1.31{col 58}{space 3}0.189{col 66}{space 4}-.4700897{col 79}{space 3} 2.380283
{txt}{space 19}2003  {c |}{col 26}{res}{space 2} 1.121466{col 38}{space 2} .6543638{col 49}{space 1}    1.71{col 58}{space 3}0.087{col 66}{space 4}-.1610632{col 79}{space 3} 2.403996
{txt}{space 19}2004  {c |}{col 26}{res}{space 2} 1.486679{col 38}{space 2} .7685184{col 49}{space 1}    1.93{col 58}{space 3}0.053{col 66}{space 4}-.0195899{col 79}{space 3} 2.992947
{txt}{space 19}2005  {c |}{col 26}{res}{space 2} 1.627449{col 38}{space 2} .6552362{col 49}{space 1}    2.48{col 58}{space 3}0.013{col 66}{space 4} .3432099{col 79}{space 3} 2.911688
{txt}{space 19}2006  {c |}{col 26}{res}{space 2}  1.96049{col 38}{space 2} .6862317{col 49}{space 1}    2.86{col 58}{space 3}0.004{col 66}{space 4} .6155009{col 79}{space 3}  3.30548
{txt}{space 19}2007  {c |}{col 26}{res}{space 2} 1.086953{col 38}{space 2} .6866398{col 49}{space 1}    1.58{col 58}{space 3}0.113{col 66}{space 4}-.2588364{col 79}{space 3} 2.432742
{txt}{space 19}2008  {c |}{col 26}{res}{space 2}  1.46511{col 38}{space 2}  .651339{col 49}{space 1}    2.25{col 58}{space 3}0.024{col 66}{space 4} .1885087{col 79}{space 3} 2.741711
{txt}{space 19}2009  {c |}{col 26}{res}{space 2}  1.50553{col 38}{space 2}  .822299{col 49}{space 1}    1.83{col 58}{space 3}0.067{col 66}{space 4}-.1061464{col 79}{space 3} 3.117206
{txt}{space 19}2010  {c |}{col 26}{res}{space 2} 1.972299{col 38}{space 2} .7930281{col 49}{space 1}    2.49{col 58}{space 3}0.013{col 66}{space 4} .4179927{col 79}{space 3} 3.526606
{txt}{space 19}2011  {c |}{col 26}{res}{space 2}  1.79819{col 38}{space 2} .7931725{col 49}{space 1}    2.27{col 58}{space 3}0.023{col 66}{space 4} .2436009{col 79}{space 3}  3.35278
{txt}{space 24} {c |}
{space 19}_cons {c |}{col 26}{res}{space 2}-8.402382{col 38}{space 2} 2.035891{col 49}{space 1}   -4.13{col 58}{space 3}0.000{col 66}{space 4}-12.39265{col 79}{space 3}-4.412109
{txt}{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                /lndelta {c |}{col 26}{res}{space 2} .3176948{col 38}{space 2} .1929561{col 66}{space 4}-.0604923{col 79}{space 3} .6958818
{txt}{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                   delta{col 26}{c |}{res}{space 2} 1.373957{col 38}{space 2} .2651134{col 66}{space 4} .9413011{col 79}{space 3} 2.005477
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Internet
. 
. nbreg agv c.agvy1_spatlag##c.internet agvy1_ylag repress_lag polity polity2 ///
> ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      474
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  1463.34
{txt}Log pseudolikelihood = {res}-369.28457                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 92:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}                       agv{col 28}{c |}      Coef.{col 40}   Std. Err.{col 52}      z{col 60}   P>|z|{col 68}     [95% Con{col 81}f. Interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}agvy1_spatlag {c |}{col 28}{res}{space 2}-.0675556{col 40}{space 2} .0899692{col 51}{space 1}   -0.75{col 60}{space 3}0.453{col 68}{space 4} -.243892{col 81}{space 3} .1087808
{txt}{space 18}internet {c |}{col 28}{res}{space 2}-.0051259{col 40}{space 2} .0215283{col 51}{space 1}   -0.24{col 60}{space 3}0.812{col 68}{space 4}-.0473206{col 81}{space 3} .0370688
{txt}{space 26} {c |}
c.agvy1_spatlag#c.internet {c |}{col 28}{res}{space 2} .0157318{col 40}{space 2} .0055473{col 51}{space 1}    2.84{col 60}{space 3}0.005{col 68}{space 4} .0048592{col 81}{space 3} .0266044
{txt}{space 26} {c |}
{space 16}agvy1_ylag {c |}{col 28}{res}{space 2} 1.091036{col 40}{space 2} .1354883{col 51}{space 1}    8.05{col 60}{space 3}0.000{col 68}{space 4} .8254841{col 81}{space 3} 1.356588
{txt}{space 15}repress_lag {c |}{col 28}{res}{space 2}  .357816{col 40}{space 2} .3114196{col 51}{space 1}    1.15{col 60}{space 3}0.251{col 68}{space 4}-.2525552{col 81}{space 3} .9681872
{txt}{space 20}polity {c |}{col 28}{res}{space 2} .0002357{col 40}{space 2} .0324837{col 51}{space 1}    0.01{col 60}{space 3}0.994{col 68}{space 4}-.0634312{col 81}{space 3} .0639025
{txt}{space 19}polity2 {c |}{col 28}{res}{space 2}  .002061{col 40}{space 2} .0053875{col 51}{space 1}    0.38{col 60}{space 3}0.702{col 68}{space 4}-.0084982{col 81}{space 3} .0126202
{txt}{space 18}ln_gdppc {c |}{col 28}{res}{space 2}-.2416495{col 40}{space 2} .1598433{col 51}{space 1}   -1.51{col 60}{space 3}0.131{col 68}{space 4}-.5549367{col 81}{space 3} .0716377
{txt}{space 20}ln_pop {c |}{col 28}{res}{space 2} .3011221{col 40}{space 2} .1456671{col 51}{space 1}    2.07{col 60}{space 3}0.039{col 68}{space 4} .0156199{col 81}{space 3} .5866243
{txt}{space 20}ethnic {c |}{col 28}{res}{space 2} .3303115{col 40}{space 2} .4803125{col 51}{space 1}    0.69{col 60}{space 3}0.492{col 68}{space 4}-.6110837{col 81}{space 3} 1.271707
{txt}{space 18}election {c |}{col 28}{res}{space 2} .1407255{col 40}{space 2} .2178902{col 51}{space 1}    0.65{col 60}{space 3}0.518{col 68}{space 4}-.2863315{col 81}{space 3} .5677824
{txt}{space 21}urban {c |}{col 28}{res}{space 2} .0065143{col 40}{space 2} .0102289{col 51}{space 1}    0.64{col 60}{space 3}0.524{col 68}{space 4}-.0135339{col 81}{space 3} .0265625
{txt}{space 7}percent_pop_refugee {c |}{col 28}{res}{space 2} 8.016982{col 40}{space 2} 15.83471{col 51}{space 1}    0.51{col 60}{space 3}0.613{col 68}{space 4}-23.01847{col 81}{space 3} 39.05244
{txt}{space 26} {c |}
{space 22}year {c |}
{space 21}2002  {c |}{col 28}{res}{space 2} .9334272{col 40}{space 2} .7270177{col 51}{space 1}    1.28{col 60}{space 3}0.199{col 68}{space 4}-.4915012{col 81}{space 3} 2.358356
{txt}{space 21}2003  {c |}{col 28}{res}{space 2} 1.061834{col 40}{space 2} .6539436{col 51}{space 1}    1.62{col 60}{space 3}0.104{col 68}{space 4}-.2198717{col 81}{space 3}  2.34354
{txt}{space 21}2004  {c |}{col 28}{res}{space 2} 1.402327{col 40}{space 2} .7544141{col 51}{space 1}    1.86{col 60}{space 3}0.063{col 68}{space 4}-.0762971{col 81}{space 3} 2.880952
{txt}{space 21}2005  {c |}{col 28}{res}{space 2} 1.530787{col 40}{space 2} .6421602{col 51}{space 1}    2.38{col 60}{space 3}0.017{col 68}{space 4} .2721764{col 81}{space 3} 2.789398
{txt}{space 21}2006  {c |}{col 28}{res}{space 2} 1.891166{col 40}{space 2} .6688312{col 51}{space 1}    2.83{col 60}{space 3}0.005{col 68}{space 4} .5802808{col 81}{space 3} 3.202051
{txt}{space 21}2007  {c |}{col 28}{res}{space 2} 1.050236{col 40}{space 2} .6387684{col 51}{space 1}    1.64{col 60}{space 3}0.100{col 68}{space 4}-.2017267{col 81}{space 3}   2.3022
{txt}{space 21}2008  {c |}{col 28}{res}{space 2} 1.258867{col 40}{space 2} .6312883{col 51}{space 1}    1.99{col 60}{space 3}0.046{col 68}{space 4} .0215645{col 81}{space 3} 2.496169
{txt}{space 21}2009  {c |}{col 28}{res}{space 2} 1.378114{col 40}{space 2}   .80597{col 51}{space 1}    1.71{col 60}{space 3}0.087{col 68}{space 4}-.2015587{col 81}{space 3} 2.957786
{txt}{space 21}2010  {c |}{col 28}{res}{space 2} 1.834048{col 40}{space 2} .7240498{col 51}{space 1}    2.53{col 60}{space 3}0.011{col 68}{space 4} .4149362{col 81}{space 3} 3.253159
{txt}{space 21}2011  {c |}{col 28}{res}{space 2} 1.552104{col 40}{space 2} .7987261{col 51}{space 1}    1.94{col 60}{space 3}0.052{col 68}{space 4}-.0133703{col 81}{space 3} 3.117578
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2}-6.741783{col 40}{space 2} 2.460078{col 51}{space 1}   -2.74{col 60}{space 3}0.006{col 68}{space 4}-11.56345{col 81}{space 3}-1.920118
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  /lndelta {c |}{col 28}{res}{space 2} .3412749{col 40}{space 2} .1933584{col 68}{space 4}-.0377006{col 81}{space 3} .7202504
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                     delta{col 28}{c |}{res}{space 2}  1.40674{col 40}{space 2}  .272005{col 68}{space 4} .9630013{col 81}{space 3} 2.054948
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *******************************************************************************
. 
. // REPRODUCE GRAPHS FOR FIGURE 3
. 
. // BEGIN GRAPH CODE
. 
. // Make a directory in which to store the graphs (only need to run once):
. 
. mkdir graphs
{txt}
{com}. 
. // Turn graphs off until the final product below:
. 
. set graphics off                        
{txt}
{com}. 
. // Run from here down in a block to create 6 combined graphs like fig 3:
. 
. qui nbreg agv c.agvy1_spatlag##c.mobile agvy1_ylag repress_lag polity ///
> polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant)
{txt}
{com}. 
. // Graph one: Mean spatial lag moderated by mobile
. 
. qui margins, at(mobile=(0(1)152) agvy1_spatlag=(1.38)) level(90)
{txt}
{com}. 
. // At this point we can run marginsplot:
. 
. marginsplot, recast(line) recastci(rarea) ///
>         plotopts(lcolor(black) lwidth(medthick) lpattern(solid)) ///
>         ciopts(fcolor(gs11) lcolor(gs10)) ///
>         yline(0, lwidth(medthick) lpattern(tight_dot) lcolor(black)) ///
>         yline(-5 5 10, lwidth(medium) lpattern(solid) lcolor(white)) ///
>         xline(0 30 60 90 120 150, lwidth(medium) lpattern(solid) lcolor(white)) ///  
>         graphregion(fcolor(white)) plotregion(fcolor(gs15)) ///
>         title(Predicted Count at Mean of Spatial Lag, size(small) color(black)) ///
>         xlabel(, labsize(vsmall) noticks) xscale(noline) ///
>         xtitle(Number of Mobile Subscribers per 100 People, size(vsmall)) ///
>         ylabel(, labsize(vsmall) noticks) yscale(noline) xsize(4) ysize(4) ///
>         ytitle(Predicted Anti-Government Violence Events, size(vsmall)) ///
>                 addplot (scatter where mobile_graph if tag_mobile, /// 
>                         xlabel(0 30 60 90 120 150) ylabel(-5(5)10) ///
>                         plotr(m(b 4)) ms(none) mlabcolor(gs1) mlabel(pipe) mlabpos(4) legend(off))  

{text}{p 2 6 2}Variables that uniquely identify margins: mobile{p_end}
{res}{txt}
{com}. 
. gr save graphs/mobile1.gph, replace
{txt}(note: file graphs/mobile1.gph not found)
{res}{txt}(file graphs/mobile1.gph saved)

{com}. 
. // Graph two: Mean spatial lag + 1 s.d. moderated by mobile
. 
. qui margins, at(mobile=(0(1)152) agvy1_spatlag=(3.01)) level(90)
{txt}
{com}. 
. // At this point we can run marginsplot:
. 
. marginsplot, recast(line) recastci(rarea) ///
>         plotopts(lcolor(black) lwidth(medthick) lpattern(solid)) ///
>         ciopts(fcolor(gs11) lcolor(gs10)) ///
>         yline(0, lwidth(medthick) lpattern(tight_dot) lcolor(black)) ///
>         yline(-5 5 10, lwidth(medium) lpattern(solid) lcolor(white)) ///
>         xline(0 30 60 90 120 150, lwidth(medium) lpattern(solid) lcolor(white)) ///  
>         graphregion(fcolor(white)) plotregion(fcolor(gs15)) ///
>         title(Predicted Count with +1 s.d. Change in Spatial Lag, size(small) color(black)) ///
>         xlabel(, labsize(vsmall) noticks) xscale(noline) ///
>         xtitle(Number of Mobile Subscribers per 100 People, size(vsmall)) ///
>         ylabel(, labsize(vsmall) noticks) yscale(noline) xsize(4) ysize(4) ///
>         ytitle(Predicted Anti-Government Violence Events, size(vsmall)) ///
>                 addplot (scatter where mobile_graph if tag_mobile, /// 
>                         xlabel(0 30 60 90 120 150) ylabel(-5(5)10) ///
>                         plotr(m(b 4)) ms(none) mlabcolor(gs1) mlabel(pipe) mlabpos(4) legend(off))

{text}{p 2 6 2}Variables that uniquely identify margins: mobile{p_end}
{res}{txt}
{com}. 
. gr save graphs/mobile2.gph, replace
{txt}(note: file graphs/mobile2.gph not found)
{res}{txt}(file graphs/mobile2.gph saved)

{com}. 
. // Graph three: Mean spatial lag + 2 s.d. moderated by mobile
. 
. qui margins, at(mobile=(0(1)152) agvy1_spatlag=(4.64)) level(90)
{txt}
{com}. 
. // At this point we can run marginsplot:
. 
. marginsplot, recast(line) recastci(rarea) ///
>         plotopts(lcolor(black) lwidth(medthick) lpattern(solid)) ///
>         ciopts(fcolor(gs11) lcolor(gs10)) ///
>         yline(0, lwidth(medthick) lpattern(tight_dot) lcolor(black)) ///
>         yline(-5 5 10 15, lwidth(medium) lpattern(solid) lcolor(white)) ///
>         xline(0 30 60 90 120 150, lwidth(medium) lpattern(solid) lcolor(white)) ///  
>         graphregion(fcolor(white)) plotregion(fcolor(gs15)) ///
>         title(Predicted Count with +2 s.d. Change in Spatial Lag, size(small) color(black)) ///
>         xlabel(, labsize(vsmall) noticks) xscale(noline) ///
>         xtitle(Number of Mobile Subscribers per 100 People, size(vsmall)) ///
>         ylabel(, labsize(vsmall) noticks) yscale(noline) xsize(4) ysize(4) ///
>         ytitle(Predicted Anti-Government Violence Events, size(vsmall)) ///
>                 addplot (scatter where mobile_graph if tag_mobile, /// 
>                         xlabel(0 30 60 90 120 150) ylabel(-5(5)10) ///
>                         plotr(m(b 4)) ms(none) mlabcolor(gs1) mlabel(pipe) mlabpos(4) legend(off))

{text}{p 2 6 2}Variables that uniquely identify margins: mobile{p_end}
{res}{txt}
{com}. 
. gr save graphs/mobile3.gph, replace
{txt}(note: file graphs/mobile3.gph not found)
{res}{txt}(file graphs/mobile3.gph saved)

{com}. 
. // Now for the same process using internet:
.                                                                                                                                                                                                                                                                                                                   
. // Now to create the graphs we run the model for internet and then margins:                             
. 
. qui nbreg agv c.agvy1_spatlag##c.internet agvy1_ylag repress_lag polity ///
> polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) 
{txt}
{com}. 
. // Graph one: Mean spatial lag moderated by internet
. 
. qui margins, at(internet=(0(1)51) agvy1_spatlag=(1.38)) level(90)
{txt}
{com}. 
. // At this point we can run marginsplot:
. 
. marginsplot, recast(line) recastci(rarea) ///
>         plotopts(lcolor(black) lwidth(medthick) lpattern(solid)) ///
>         ciopts(fcolor(gs11) lcolor(gs10)) ///
>         yline(0, lwidth(medthick) lpattern(tight_dot) lcolor(black)) ///
>         yline(-5 5 10, lwidth(medium) lpattern(solid) lcolor(white)) ///
>         xline(0 10 20 30 40 50, lwidth(medium) lpattern(solid) lcolor(white)) ///  
>         graphregion(fcolor(white)) plotregion(fcolor(gs15)) ///
>         title(Predicted Count at Mean of Spatial Lag, ///
>         size(small) color(black)) ///
>         xlabel(, labsize(vsmall) noticks) xscale(noline) ///
>         xtitle(Percent of Population Using Internet, size(vsmall)) ///
>         ylabel(, labsize(vsmall) noticks) yscale(noline) xsize(4) ysize(4) ///
>         ytitle(Predicted Anti-Government Violence Events, size(vsmall)) ///
>                 addplot (scatter where internet_graph if tag_internet, /// 
>                 xlabel(0(10)50) ylabel(-5(5)10) ///
>                 plotr(m(b 4)) ms(none) mlabcolor(gs1) mlabel(pipe) mlabpos(4) legend(off))

{text}{p 2 6 2}Variables that uniquely identify margins: internet{p_end}
{res}{txt}
{com}. 
. gr save graphs/internet1.gph, replace 
{txt}(note: file graphs/internet1.gph not found)
{res}{txt}(file graphs/internet1.gph saved)

{com}. 
. // Graph two: Mean spatial lag + 1 s.d. moderated by internet
. 
. qui margins, at(internet=(0(1)51) agvy1_spatlag=(3.01)) level(90)
{txt}
{com}. 
. // At this point we can run marginsplot:
. 
. marginsplot, recast(line) recastci(rarea) ///
>         plotopts(lcolor(black) lwidth(medthick) lpattern(solid)) ///
>         ciopts(fcolor(gs12) lcolor(gs12)) ///
>         yline(0, lwidth(medthick) lpattern(tight_dot) lcolor(black)) ///
>         yline(-5 5 10, lwidth(medium) lpattern(solid) lcolor(white)) ///
>         xline(0 10 20 30 40 50, lwidth(medium) lpattern(solid) lcolor(white)) ///  
>         graphregion(fcolor(white)) plotregion(fcolor(gs15)) ///
>         title(Predicted Count with +1 s.d. Change in Spatial Lag, size(small) color(black)) ///
>         xlabel(, labsize(vsmall) noticks) xscale(noline) ///
>         xtitle(Percent of Population Using Internet, size(vsmall)) ///
>         ylabel(, labsize(vsmall) noticks) yscale(noline) xsize(4) ysize(4) ///
>         ytitle(Predicted Anti-Government Violence Events, size(vsmall)) ///
>                 addplot (scatter where internet_graph if tag_internet, /// 
>                         xlabel(0(10)50) ylabel(-5(5)10) ///
>                         plotr(m(b 4)) ms(none) mlabcolor(gs1) mlabel(pipe) mlabpos(4) legend(off)) 

{text}{p 2 6 2}Variables that uniquely identify margins: internet{p_end}
{res}{txt}
{com}. 
. gr save graphs/internet2.gph, replace  
{txt}(note: file graphs/internet2.gph not found)
{res}{txt}(file graphs/internet2.gph saved)

{com}. 
. // Graph three: Mean spatial lag + 2 s.d. moderated by internet
. 
. qui margins, at(internet=(0(1)51) agvy1_spatlag=(4.64)) level(90)
{txt}
{com}. 
. // At this point we can run marginsplot:
. 
. marginsplot, recast(line) recastci(rarea) ///
>         plotopts(lcolor(black) lwidth(medthick) lpattern(solid)) ///
>         ciopts(fcolor(gs12) lcolor(gs12)) ///
>         yline(0, lwidth(medthick) lpattern(tight_dot) lcolor(black)) ///
>         yline(-5 5 10 15 20 25 30 35, lwidth(medium) lpattern(solid) lcolor(white)) ///
>         xline(0 10 20 30 40 50, lwidth(medium) lpattern(solid) lcolor(white)) ///  
>         graphregion(fcolor(white)) plotregion(fcolor(gs15)) ///
>         title(Predicted Count with +2 s.d. Change in Spatial Lag, ///
>         size(small) color(black)) ///
>         xlabel(, labsize(vsmall) noticks) xscale(noline) ///
>         xtitle(Percent of Population Using Internet, size(vsmall)) ///
>         ylabel(, labsize(vsmall) noticks) yscale(noline) xsize(4) ysize(4) ///
>         ytitle(Predicted Anti-Government Violence Events, size(vsmall)) ///
>                 addplot (scatter where2 internet_graph if tag_internet, /// 
>                         xlabel(0(10)50) ylabel(-5(5)35) ///
>                         plotr(m(b 4)) ms(none) mlabcolor(gs1) mlabel(pipe) mlabpos(6) legend(off)) 

{text}{p 2 6 2}Variables that uniquely identify margins: internet{p_end}
{res}{txt}
{com}. 
. gr save graphs/internet3.gph, replace 
{txt}(note: file graphs/internet3.gph not found)
{res}{txt}(file graphs/internet3.gph saved)

{com}. 
. // Turn the graphics back on for combined graph:
. 
. set graphics on                 
{txt}
{com}. 
. // Now to combine the graphs into one image:
. 
. graph combine graphs/mobile1.gph graphs/mobile2.gph graphs/mobile3.gph ///
> graphs/internet1.gph graphs/internet2.gph graphs/internet3.gph, ///
> graphregion(fcolor(white)) 
{res}{txt}
{com}. 
. gr save graphs/combined.gph, replace 
{txt}(note: file graphs/combined.gph not found)
{res}{txt}(file graphs/combined.gph saved)

{com}. 
. gr export graphs/combined.pdf, replace
{txt}(file /Users/cwimpy/Dropbox/Garcia-Wimpy/PSRM Reproduction/graphs/combined.pdf written in PDF format)

{com}. gr export graphs/combined.png, replace
{txt}(file graphs/combined.png written in PNG format)

{com}. 
. // END GRAPH CODE
. 
. *******************************************************************************
. 
. // SUBSTANTIVE IMPACTS FOR TABLE 3 IN ARTICLE
.                                                               
. // Mobile moving from mean (zero) to +1 s.d. and for when mobile=0
. 
. qui nbreg agv c.center_agvy1_spatlag##c.center_mobile agvy1_ylag repress_lag /// 
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) irr level(90) 
{txt}
{com}. 
. // Print results:
. 
. estout, eform cells("b(fmt(3)) ci") keep(center_agvy1_spatlag ///
> c.center_agvy1_spatlag#c.center_mobile) level(90)  
{res}
{txt}{hline 38}
{txt}                        .             
{txt}                        b         ci90
{txt}{hline 38}
{res}agv                                   {txt}
{txt}center_agv~g{res}        0.978  0.792,1.207{txt}
{txt}c.center_a~o{res}        1.320  1.059,1.644{txt}
{txt}{hline 38}

{com}. 
. // Calculate the percentage change for when mobile=0:
. 
. di 0.978-1
{res}-.022
{txt}
{com}. di -.022*100
{res}-2.2
{txt}
{com}. 
. // Calculate the percentage change for mobile moving from mean (zero) to +1 s.d.:
. 
. di 1.320-1
{res}.32
{txt}
{com}. di  .32*100
{res}32
{txt}
{com}. 
. // Mobile moving from 0 to 5 subscriptions
. 
. qui nbreg agv c.center_agvy1_spatlag##c.center_mobile1 agvy1_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) irr level(90)
{txt}
{com}. 
. // Print results:
. 
. estout, eform cells("b(fmt(3)) ci") ///
> keep(c.center_agvy1_spatlag#c.center_mobile1) level(90)  
{res}
{txt}{hline 38}
{txt}                        .             
{txt}                        b         ci90
{txt}{hline 38}
{res}agv                                   {txt}
{txt}c.center_a~o{res}        1.046  1.009,1.085{txt}
{txt}{hline 38}

{com}. 
. // Calculate the percentage change for mobile moving from 0 to 5 subscriptions:
. 
. di 1.046-1
{res}.046
{txt}
{com}. di  .046*100
{res}4.6
{txt}
{com}. 
. // Mobile moving from 5 to 10 subscriptions
. 
. nbreg agv c.center_agvy1_spatlag##c.center_mobile2 agvy1_ylag repress_lag /// 
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) irr level(90) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      477
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  2154.29
{txt}Log pseudolikelihood = {res}-378.12229                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 89:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}                    agv{col 25}{c |}        IRR{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [90% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}center_agvy1_spatlag {c |}{col 25}{res}{space 2} .8122424{col 37}{space 2} .1449172{col 48}{space 1}   -1.17{col 57}{space 3}0.244{col 65}{space 4}  .605667{col 78}{space 3} 1.089275
{txt}{space 9}center_mobile2 {c |}{col 25}{res}{space 2} .9879424{col 37}{space 2} .0680732{col 48}{space 1}   -0.18{col 57}{space 3}0.860{col 65}{space 4} .8820841{col 78}{space 3} 1.106505
{txt}{space 23} {c |}
{space 1}c.center_agvy1_spatlag#{c |}
{space 7}c.center_mobile2 {c |}{col 25}{res}{space 2} 1.095047{col 37}{space 2} .0478835{col 48}{space 1}    2.08{col 57}{space 3}0.038{col 65}{space 4} 1.019051{col 78}{space 3} 1.176709
{txt}{space 23} {c |}
{space 13}agvy1_ylag {c |}{col 25}{res}{space 2} 3.060786{col 37}{space 2} .4213756{col 48}{space 1}    8.13{col 57}{space 3}0.000{col 65}{space 4} 2.440556{col 78}{space 3} 3.838636
{txt}{space 12}repress_lag {c |}{col 25}{res}{space 2} 1.463008{col 37}{space 2} .4309179{col 48}{space 1}    1.29{col 57}{space 3}0.196{col 65}{space 4} .9012396{col 78}{space 3} 2.374944
{txt}{space 17}polity {c |}{col 25}{res}{space 2} .9980863{col 37}{space 2} .0269492{col 48}{space 1}   -0.07{col 57}{space 3}0.943{col 65}{space 4} .9547288{col 78}{space 3} 1.043413
{txt}{space 16}polity2 {c |}{col 25}{res}{space 2} 1.000751{col 37}{space 2} .0053657{col 48}{space 1}    0.14{col 57}{space 3}0.889{col 65}{space 4}  .991964{col 78}{space 3} 1.009616
{txt}{space 15}ln_gdppc {c |}{col 25}{res}{space 2} .9422712{col 37}{space 2} .1975403{col 48}{space 1}   -0.28{col 57}{space 3}0.777{col 65}{space 4} .6674479{col 78}{space 3} 1.330253
{txt}{space 17}ln_pop {c |}{col 25}{res}{space 2} 1.420463{col 37}{space 2} .1783622{col 48}{space 1}    2.80{col 57}{space 3}0.005{col 65}{space 4} 1.155397{col 78}{space 3} 1.746337
{txt}{space 17}ethnic {c |}{col 25}{res}{space 2} 1.317334{col 37}{space 2} .6276214{col 48}{space 1}    0.58{col 57}{space 3}0.563{col 65}{space 4}  .601666{col 78}{space 3} 2.884272
{txt}{space 15}election {c |}{col 25}{res}{space 2} 1.297953{col 37}{space 2} .2601029{col 48}{space 1}    1.30{col 57}{space 3}0.193{col 65}{space 4} .9334839{col 78}{space 3} 1.804725
{txt}{space 18}urban {c |}{col 25}{res}{space 2} 1.000606{col 37}{space 2}  .011424{col 48}{space 1}    0.05{col 57}{space 3}0.958{col 65}{space 4} .9819903{col 78}{space 3} 1.019574
{txt}{space 4}percent_pop_refugee {c |}{col 25}{res}{space 2} 8910.449{col 37}{space 2} 134407.2{col 48}{space 1}    0.60{col 57}{space 3}0.547{col 65}{space 4} 1.49e-07{col 78}{space 3} 5.31e+14
{txt}{space 23} {c |}
{space 19}year {c |}
{space 18}2002  {c |}{col 25}{res}{space 2} 2.598922{col 37}{space 2} 1.889804{col 48}{space 1}    1.31{col 57}{space 3}0.189{col 65}{space 4} .7858751{col 78}{space 3} 8.594743
{txt}{space 18}2003  {c |}{col 25}{res}{space 2} 3.069351{col 37}{space 2} 2.008472{col 48}{space 1}    1.71{col 57}{space 3}0.087{col 65}{space 4} 1.046168{col 78}{space 3}  9.00517
{txt}{space 18}2004  {c |}{col 25}{res}{space 2} 4.422382{col 37}{space 2} 3.398682{col 48}{space 1}    1.93{col 57}{space 3}0.053{col 65}{space 4} 1.249294{col 78}{space 3} 15.65482
{txt}{space 18}2005  {c |}{col 25}{res}{space 2} 5.090872{col 37}{space 2} 3.335724{col 48}{space 1}    2.48{col 57}{space 3}0.013{col 65}{space 4} 1.732701{col 78}{space 3} 14.95756
{txt}{space 18}2006  {c |}{col 25}{res}{space 2} 7.102808{col 37}{space 2} 4.874172{col 48}{space 1}    2.86{col 57}{space 3}0.004{col 65}{space 4} 2.297312{col 78}{space 3}  21.9604
{txt}{space 18}2007  {c |}{col 25}{res}{space 2} 2.965225{col 37}{space 2} 2.036041{col 48}{space 1}    1.58{col 57}{space 3}0.113{col 65}{space 4} .9584201{col 78}{space 3} 9.174012
{txt}{space 18}2008  {c |}{col 25}{res}{space 2} 4.328018{col 37}{space 2} 2.819007{col 48}{space 1}    2.25{col 57}{space 3}0.024{col 65}{space 4} 1.482533{col 78}{space 3} 12.63496
{txt}{space 18}2009  {c |}{col 25}{res}{space 2} 4.506542{col 37}{space 2} 3.705725{col 48}{space 1}    1.83{col 57}{space 3}0.067{col 65}{space 4} 1.165288{col 78}{space 3} 17.42823
{txt}{space 18}2010  {c |}{col 25}{res}{space 2} 7.187183{col 37}{space 2} 5.699638{col 48}{space 1}    2.49{col 57}{space 3}0.013{col 65}{space 4} 1.950107{col 78}{space 3}  26.4886
{txt}{space 18}2011  {c |}{col 25}{res}{space 2}  6.03871{col 37}{space 2} 4.789739{col 48}{space 1}    2.27{col 57}{space 3}0.023{col 65}{space 4} 1.638101{col 78}{space 3} 22.26115
{txt}{space 23} {c |}
{space 18}_cons {c |}{col 25}{res}{space 2} .0001801{col 37}{space 2} .0003732{col 48}{space 1}   -4.16{col 57}{space 3}0.000{col 65}{space 4} 5.96e-06{col 78}{space 3} .0054445
{txt}{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               /lndelta {c |}{col 25}{res}{space 2} .3176948{col 37}{space 2} .1929561{col 65}{space 4} .0003102{col 78}{space 3} .6350793
{txt}{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                  delta{col 25}{c |}{res}{space 2} 1.373957{col 37}{space 2} .2651134{col 65}{space 4}  1.00031{col 78}{space 3} 1.887172
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Print results:
. 
. estout, eform cells("b(fmt(3)) ci") ///
> keep(c.center_agvy1_spatlag#c.center_mobile2) level(90)
{res}
{txt}{hline 38}
{txt}                        .             
{txt}                        b         ci90
{txt}{hline 38}
{res}agv                                   {txt}
{txt}c.center_a~o{res}        1.095  1.019,1.177{txt}
{txt}{hline 38}

{com}. 
. // Calculate the percentage change for mobile moving from 5 to 10 subscriptions:
. 
. di 1.095-1
{res}.095
{txt}
{com}. di  .095*100
{res}9.5
{txt}
{com}. 
. // Internet moving from mean (zero) to +1 s.d. and for when internet=0
. 
. qui nbreg agv c.center_agvy1_spatlag##c.center_internet agvy1_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) irr level(90) 
{txt}
{com}. 
. // Print results:
. 
. estout, eform cells("b(fmt(3)) ci") keep(center_agvy1_spatlag ///
> c.center_agvy1_spatlag#c.center_internet) level(90)  
{res}
{txt}{hline 38}
{txt}                        .             
{txt}                        b         ci90
{txt}{hline 38}
{res}agv                                   {txt}
{txt}center_agv~g{res}        0.999  0.814,1.226{txt}
{txt}c.center_a~n{res}        1.189  1.075,1.314{txt}
{txt}{hline 38}

{com}. 
. // Calculate the percentage change for when internet=0:
. 
. di 0.999-1
{res}-.001
{txt}
{com}. di -.001*100
{res}-.1
{txt}
{com}. 
. // Calculate the percentage change for internet moving from mean (zero) to +1 s.d.:
. 
. di 1.189-1
{res}.189
{txt}
{com}. di  .189*100
{res}18.9
{txt}
{com}. 
. // Internet moving from .9 % to 2 % users:
. 
. qui nbreg agv c.center_agvy1_spatlag##c.center_internet1 agvy1_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) irr level(90) 
{txt}
{com}. 
. // Print results:
. 
. estout, eform cells("b(fmt(3)) ci") ///
> keep(c.center_agvy1_spatlag#c.center_internet1) level(90)
{res}
{txt}{hline 38}
{txt}                        .             
{txt}                        b         ci90
{txt}{hline 38}
{res}agv                                   {txt}
{txt}c.center_a~n{res}        1.053  1.022,1.085{txt}
{txt}{hline 38}

{com}. 
. // Calculate the percentage change for internet moving from .9 % to 2 % users:
. 
. di 1.053-1
{res}.053
{txt}
{com}. di  .053*100
{res}5.3
{txt}
{com}. 
. // Internet moving from 2 % to 5 % users.
. 
. qui nbreg agv c.center_agvy1_spatlag##c.center_internet2 agvy1_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) irr level(90) 
{txt}
{com}. 
. // Print results:
. 
. estout, eform cells("b(fmt(3)) ci") ///
> keep(c.center_agvy1_spatlag#c.center_internet2) level(90)
{res}
{txt}{hline 38}
{txt}                        .             
{txt}                        b         ci90
{txt}{hline 38}
{res}agv                                   {txt}
{txt}c.center_a~n{res}        1.137  1.055,1.225{txt}
{txt}{hline 38}

{com}. 
. // Calculate the percentage change for internet moving from 2 % to 5 % users:
. 
. di 1.137-1
{res}.137
{txt}
{com}. di  .137*100
{res}13.7
{txt}
{com}. 
. // END MAIN ARTICLE REPLICATION FILES
. 
. *******************************************************************************
. 
. // SUPPLEMENTARY MATERIALS
. 
. // MODELS FOR TABLE S-1
. 
. // Demonstrations (Mobile)
. 
. nbreg demonstrations c.demoy1_spatlag1##c.mobile demo_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant)
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      477
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  1067.58
{txt}Log pseudolikelihood = {res}-968.72291                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 92:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}            demonstrations{col 28}{c |}      Coef.{col 40}   Std. Err.{col 52}      z{col 60}   P>|z|{col 68}     [95% Con{col 81}f. Interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}demoy1_spatlag1 {c |}{col 28}{res}{space 2}-.0143224{col 40}{space 2}  .024142{col 51}{space 1}   -0.59{col 60}{space 3}0.553{col 68}{space 4}-.0616399{col 81}{space 3} .0329951
{txt}{space 20}mobile {c |}{col 28}{res}{space 2} .0047296{col 40}{space 2} .0038082{col 51}{space 1}    1.24{col 60}{space 3}0.214{col 68}{space 4}-.0027345{col 81}{space 3} .0121936
{txt}{space 26} {c |}
c.demoy1_spatlag1#c.mobile {c |}{col 28}{res}{space 2} .0002931{col 40}{space 2} .0006872{col 51}{space 1}    0.43{col 60}{space 3}0.670{col 68}{space 4}-.0010537{col 81}{space 3}   .00164
{txt}{space 26} {c |}
{space 17}demo_ylag {c |}{col 28}{res}{space 2} .5660922{col 40}{space 2} .0708922{col 51}{space 1}    7.99{col 60}{space 3}0.000{col 68}{space 4} .4271461{col 81}{space 3} .7050384
{txt}{space 15}repress_lag {c |}{col 28}{res}{space 2} .2936082{col 40}{space 2} .1456858{col 51}{space 1}    2.02{col 60}{space 3}0.044{col 68}{space 4} .0080693{col 81}{space 3} .5791471
{txt}{space 20}polity {c |}{col 28}{res}{space 2}-.0173061{col 40}{space 2} .0107232{col 51}{space 1}   -1.61{col 60}{space 3}0.107{col 68}{space 4}-.0383231{col 81}{space 3} .0037109
{txt}{space 19}polity2 {c |}{col 28}{res}{space 2}-.0010636{col 40}{space 2} .0025856{col 51}{space 1}   -0.41{col 60}{space 3}0.681{col 68}{space 4}-.0061314{col 81}{space 3} .0040041
{txt}{space 18}ln_gdppc {c |}{col 28}{res}{space 2} .1122759{col 40}{space 2} .1226372{col 51}{space 1}    0.92{col 60}{space 3}0.360{col 68}{space 4}-.1280886{col 81}{space 3} .3526405
{txt}{space 20}ln_pop {c |}{col 28}{res}{space 2} .2705661{col 40}{space 2} .0545533{col 51}{space 1}    4.96{col 60}{space 3}0.000{col 68}{space 4} .1636436{col 81}{space 3} .3774886
{txt}{space 20}ethnic {c |}{col 28}{res}{space 2}-.0987532{col 40}{space 2}  .269016{col 51}{space 1}   -0.37{col 60}{space 3}0.714{col 68}{space 4}-.6260148{col 81}{space 3} .4285084
{txt}{space 18}election {c |}{col 28}{res}{space 2}   .21413{col 40}{space 2} .1155379{col 51}{space 1}    1.85{col 60}{space 3}0.064{col 68}{space 4}-.0123201{col 81}{space 3} .4405801
{txt}{space 21}urban {c |}{col 28}{res}{space 2}-.0077549{col 40}{space 2} .0062108{col 51}{space 1}   -1.25{col 60}{space 3}0.212{col 68}{space 4} -.019928{col 81}{space 3} .0044181
{txt}{space 7}percent_pop_refugee {c |}{col 28}{res}{space 2}-14.14606{col 40}{space 2} 9.175493{col 51}{space 1}   -1.54{col 60}{space 3}0.123{col 68}{space 4} -32.1297{col 81}{space 3} 3.837574
{txt}{space 26} {c |}
{space 22}year {c |}
{space 21}2002  {c |}{col 28}{res}{space 2}-.0432612{col 40}{space 2} .2043858{col 51}{space 1}   -0.21{col 60}{space 3}0.832{col 68}{space 4}-.4438499{col 81}{space 3} .3573276
{txt}{space 21}2003  {c |}{col 28}{res}{space 2}   .03045{col 40}{space 2} .1851158{col 51}{space 1}    0.16{col 60}{space 3}0.869{col 68}{space 4}-.3323703{col 81}{space 3} .3932703
{txt}{space 21}2004  {c |}{col 28}{res}{space 2}-.0623896{col 40}{space 2} .1879021{col 51}{space 1}   -0.33{col 60}{space 3}0.740{col 68}{space 4} -.430671{col 81}{space 3} .3058917
{txt}{space 21}2005  {c |}{col 28}{res}{space 2}-.0056714{col 40}{space 2} .2056125{col 51}{space 1}   -0.03{col 60}{space 3}0.978{col 68}{space 4}-.4086645{col 81}{space 3} .3973217
{txt}{space 21}2006  {c |}{col 28}{res}{space 2}-.3056616{col 40}{space 2}  .181368{col 51}{space 1}   -1.69{col 60}{space 3}0.092{col 68}{space 4}-.6611364{col 81}{space 3} .0498131
{txt}{space 21}2007  {c |}{col 28}{res}{space 2} -.603191{col 40}{space 2} .2032422{col 51}{space 1}   -2.97{col 60}{space 3}0.003{col 68}{space 4}-1.001538{col 81}{space 3}-.2048436
{txt}{space 21}2008  {c |}{col 28}{res}{space 2}-.5262009{col 40}{space 2} .3054685{col 51}{space 1}   -1.72{col 60}{space 3}0.085{col 68}{space 4}-1.124908{col 81}{space 3} .0725064
{txt}{space 21}2009  {c |}{col 28}{res}{space 2}-.7577877{col 40}{space 2} .2178676{col 51}{space 1}   -3.48{col 60}{space 3}0.001{col 68}{space 4}  -1.1848{col 81}{space 3} -.330775
{txt}{space 21}2010  {c |}{col 28}{res}{space 2}-.4111489{col 40}{space 2} .2633416{col 51}{space 1}   -1.56{col 60}{space 3}0.118{col 68}{space 4} -.927289{col 81}{space 3} .1049912
{txt}{space 21}2011  {c |}{col 28}{res}{space 2}-.3451926{col 40}{space 2} .2962321{col 51}{space 1}   -1.17{col 60}{space 3}0.244{col 68}{space 4}-.9257969{col 81}{space 3} .2354116
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2} -4.44848{col 40}{space 2} 1.043488{col 51}{space 1}   -4.26{col 60}{space 3}0.000{col 68}{space 4}-6.493679{col 81}{space 3}-2.403282
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  /lndelta {c |}{col 28}{res}{space 2} .8333285{col 40}{space 2} .1586162{col 68}{space 4} .5224465{col 81}{space 3}  1.14421
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                     delta{col 28}{c |}{res}{space 2} 2.300965{col 40}{space 2} .3649702{col 68}{space 4} 1.686148{col 81}{space 3} 3.139961
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Demonstrations (Internet)
. 
. nbreg demonstrations c.demoy1_spatlag1##c.internet demo_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      474
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  1455.90
{txt}Log pseudolikelihood = {res}-957.73477                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 94:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 30}{c |}{col 42}    Robust
{col 1}              demonstrations{col 30}{c |}      Coef.{col 42}   Std. Err.{col 54}      z{col 62}   P>|z|{col 70}     [95% Con{col 83}f. Interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}demoy1_spatlag1 {c |}{col 30}{res}{space 2}-.0211594{col 42}{space 2} .0170204{col 53}{space 1}   -1.24{col 62}{space 3}0.214{col 70}{space 4}-.0545188{col 83}{space 3}    .0122
{txt}{space 20}internet {c |}{col 30}{res}{space 2} .0054543{col 42}{space 2} .0100664{col 53}{space 1}    0.54{col 62}{space 3}0.588{col 70}{space 4}-.0142755{col 83}{space 3} .0251841
{txt}{space 28} {c |}
c.demoy1_spatlag1#c.internet {c |}{col 30}{res}{space 2} .0034552{col 42}{space 2}  .003005{col 53}{space 1}    1.15{col 62}{space 3}0.250{col 70}{space 4}-.0024345{col 83}{space 3} .0093448
{txt}{space 28} {c |}
{space 19}demo_ylag {c |}{col 30}{res}{space 2} .5238469{col 42}{space 2} .0764969{col 53}{space 1}    6.85{col 62}{space 3}0.000{col 70}{space 4} .3739158{col 83}{space 3}  .673778
{txt}{space 17}repress_lag {c |}{col 30}{res}{space 2} .3232067{col 42}{space 2} .1518255{col 53}{space 1}    2.13{col 62}{space 3}0.033{col 70}{space 4} .0256343{col 83}{space 3} .6207792
{txt}{space 22}polity {c |}{col 30}{res}{space 2}-.0132242{col 42}{space 2} .0124369{col 53}{space 1}   -1.06{col 62}{space 3}0.288{col 70}{space 4}   -.0376{col 83}{space 3} .0111516
{txt}{space 21}polity2 {c |}{col 30}{res}{space 2}-.0005501{col 42}{space 2} .0027792{col 53}{space 1}   -0.20{col 62}{space 3}0.843{col 70}{space 4}-.0059972{col 83}{space 3}  .004897
{txt}{space 20}ln_gdppc {c |}{col 30}{res}{space 2} .1118713{col 42}{space 2} .1173831{col 53}{space 1}    0.95{col 62}{space 3}0.341{col 70}{space 4}-.1181954{col 83}{space 3}  .341938
{txt}{space 22}ln_pop {c |}{col 30}{res}{space 2} .2518474{col 42}{space 2} .0582901{col 53}{space 1}    4.32{col 62}{space 3}0.000{col 70}{space 4} .1376009{col 83}{space 3} .3660938
{txt}{space 22}ethnic {c |}{col 30}{res}{space 2}-.0128386{col 42}{space 2}  .290182{col 53}{space 1}   -0.04{col 62}{space 3}0.965{col 70}{space 4} -.581585{col 83}{space 3} .5559077
{txt}{space 20}election {c |}{col 30}{res}{space 2} .1753042{col 42}{space 2} .1165475{col 53}{space 1}    1.50{col 62}{space 3}0.133{col 70}{space 4}-.0531247{col 83}{space 3}  .403733
{txt}{space 23}urban {c |}{col 30}{res}{space 2}-.0042721{col 42}{space 2} .0058236{col 53}{space 1}   -0.73{col 62}{space 3}0.463{col 70}{space 4}-.0156861{col 83}{space 3} .0071419
{txt}{space 9}percent_pop_refugee {c |}{col 30}{res}{space 2}-16.17967{col 42}{space 2} 9.802932{col 53}{space 1}   -1.65{col 62}{space 3}0.099{col 70}{space 4}-35.39306{col 83}{space 3} 3.033726
{txt}{space 28} {c |}
{space 24}year {c |}
{space 23}2002  {c |}{col 30}{res}{space 2} -.047062{col 42}{space 2} .2032727{col 53}{space 1}   -0.23{col 62}{space 3}0.817{col 70}{space 4}-.4454692{col 83}{space 3} .3513453
{txt}{space 23}2003  {c |}{col 30}{res}{space 2}  .020167{col 42}{space 2} .1825635{col 53}{space 1}    0.11{col 62}{space 3}0.912{col 70}{space 4}-.3376509{col 83}{space 3} .3779849
{txt}{space 23}2004  {c |}{col 30}{res}{space 2}-.0635477{col 42}{space 2} .1874865{col 53}{space 1}   -0.34{col 62}{space 3}0.735{col 70}{space 4}-.4310144{col 83}{space 3}  .303919
{txt}{space 23}2005  {c |}{col 30}{res}{space 2} .0117007{col 42}{space 2} .2102663{col 53}{space 1}    0.06{col 62}{space 3}0.956{col 70}{space 4}-.4004136{col 83}{space 3} .4238151
{txt}{space 23}2006  {c |}{col 30}{res}{space 2}-.2982952{col 42}{space 2} .1701913{col 53}{space 1}   -1.75{col 62}{space 3}0.080{col 70}{space 4} -.631864{col 83}{space 3} .0352735
{txt}{space 23}2007  {c |}{col 30}{res}{space 2}-.5420396{col 42}{space 2} .1911379{col 53}{space 1}   -2.84{col 62}{space 3}0.005{col 70}{space 4} -.916663{col 83}{space 3}-.1674162
{txt}{space 23}2008  {c |}{col 30}{res}{space 2}-.5262832{col 42}{space 2} .2728417{col 53}{space 1}   -1.93{col 62}{space 3}0.054{col 70}{space 4}-1.061043{col 83}{space 3} .0084766
{txt}{space 23}2009  {c |}{col 30}{res}{space 2}-.6842453{col 42}{space 2} .2178371{col 53}{space 1}   -3.14{col 62}{space 3}0.002{col 70}{space 4}-1.111198{col 83}{space 3}-.2572924
{txt}{space 23}2010  {c |}{col 30}{res}{space 2}-.2834341{col 42}{space 2} .2418126{col 53}{space 1}   -1.17{col 62}{space 3}0.241{col 70}{space 4}-.7573781{col 83}{space 3} .1905098
{txt}{space 23}2011  {c |}{col 30}{res}{space 2}-.3527522{col 42}{space 2} .2733757{col 53}{space 1}   -1.29{col 62}{space 3}0.197{col 70}{space 4}-.8885586{col 83}{space 3} .1830542
{txt}{space 28} {c |}
{space 23}_cons {c |}{col 30}{res}{space 2}-4.233046{col 42}{space 2} 1.093388{col 53}{space 1}   -3.87{col 62}{space 3}0.000{col 70}{space 4}-6.376046{col 83}{space 3}-2.090046
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                    /lndelta {c |}{col 30}{res}{space 2} .7989247{col 42}{space 2} .1602988{col 70}{space 4} .4847447{col 83}{space 3} 1.113105
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                       delta{col 30}{c |}{res}{space 2} 2.223149{col 42}{space 2} .3563682{col 70}{space 4}  1.62376{col 83}{space 3} 3.043794
{txt}{hline 29}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Strikes (Mobile)
. 
. nbreg strikes c.strikesy1_spatlag1##c.mobile strikes_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      477
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}   456.52
{txt}Log pseudolikelihood = {res}-630.1686                  {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 95:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                      strikes{col 31}{c |}      Coef.{col 43}   Std. Err.{col 55}      z{col 63}   P>|z|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}strikesy1_spatlag1 {c |}{col 31}{res}{space 2}-.0130228{col 43}{space 2} .0439131{col 54}{space 1}   -0.30{col 63}{space 3}0.767{col 71}{space 4}-.0990909{col 84}{space 3} .0730453
{txt}{space 23}mobile {c |}{col 31}{res}{space 2} .0031544{col 43}{space 2} .0041584{col 54}{space 1}    0.76{col 63}{space 3}0.448{col 71}{space 4} -.004996{col 84}{space 3} .0113047
{txt}{space 29} {c |}
c.strikesy1_spatlag1#c.mobile {c |}{col 31}{res}{space 2} .0001403{col 43}{space 2} .0016085{col 54}{space 1}    0.09{col 63}{space 3}0.931{col 71}{space 4}-.0030123{col 84}{space 3} .0032929
{txt}{space 29} {c |}
{space 17}strikes_ylag {c |}{col 31}{res}{space 2} .8770776{col 43}{space 2}  .112643{col 54}{space 1}    7.79{col 63}{space 3}0.000{col 71}{space 4} .6563013{col 84}{space 3} 1.097854
{txt}{space 18}repress_lag {c |}{col 31}{res}{space 2} .3770811{col 43}{space 2} .1537941{col 54}{space 1}    2.45{col 63}{space 3}0.014{col 71}{space 4} .0756502{col 84}{space 3} .6785119
{txt}{space 23}polity {c |}{col 31}{res}{space 2} .0468078{col 43}{space 2} .0277231{col 54}{space 1}    1.69{col 63}{space 3}0.091{col 71}{space 4}-.0075285{col 84}{space 3}  .101144
{txt}{space 22}polity2 {c |}{col 31}{res}{space 2}-.0062377{col 43}{space 2} .0049075{col 54}{space 1}   -1.27{col 63}{space 3}0.204{col 71}{space 4}-.0158562{col 84}{space 3} .0033809
{txt}{space 21}ln_gdppc {c |}{col 31}{res}{space 2} .0276814{col 43}{space 2} .1324781{col 54}{space 1}    0.21{col 63}{space 3}0.834{col 71}{space 4} -.231971{col 84}{space 3} .2873338
{txt}{space 23}ln_pop {c |}{col 31}{res}{space 2} .0958954{col 43}{space 2} .0631901{col 54}{space 1}    1.52{col 63}{space 3}0.129{col 71}{space 4} -.027955{col 84}{space 3} .2197457
{txt}{space 23}ethnic {c |}{col 31}{res}{space 2}-.0154359{col 43}{space 2} .5047616{col 54}{space 1}   -0.03{col 63}{space 3}0.976{col 71}{space 4}-1.004751{col 84}{space 3} .9738787
{txt}{space 21}election {c |}{col 31}{res}{space 2} .0472889{col 43}{space 2} .1565271{col 54}{space 1}    0.30{col 63}{space 3}0.763{col 71}{space 4}-.2594986{col 84}{space 3} .3540764
{txt}{space 24}urban {c |}{col 31}{res}{space 2} .0023682{col 43}{space 2} .0072541{col 54}{space 1}    0.33{col 63}{space 3}0.744{col 71}{space 4}-.0118496{col 84}{space 3}  .016586
{txt}{space 10}percent_pop_refugee {c |}{col 31}{res}{space 2} 3.561908{col 43}{space 2} 9.748304{col 54}{space 1}    0.37{col 63}{space 3}0.715{col 71}{space 4}-15.54442{col 84}{space 3} 22.66823
{txt}{space 29} {c |}
{space 25}year {c |}
{space 24}2002  {c |}{col 31}{res}{space 2}-.3159048{col 43}{space 2} .2511817{col 54}{space 1}   -1.26{col 63}{space 3}0.209{col 71}{space 4}-.8082118{col 84}{space 3} .1764023
{txt}{space 24}2003  {c |}{col 31}{res}{space 2}-.4642265{col 43}{space 2} .2415109{col 54}{space 1}   -1.92{col 63}{space 3}0.055{col 71}{space 4}-.9375792{col 84}{space 3} .0091262
{txt}{space 24}2004  {c |}{col 31}{res}{space 2} -.340496{col 43}{space 2} .2790808{col 54}{space 1}   -1.22{col 63}{space 3}0.222{col 71}{space 4}-.8874844{col 84}{space 3} .2064924
{txt}{space 24}2005  {c |}{col 31}{res}{space 2}-.1920374{col 43}{space 2} .1922766{col 54}{space 1}   -1.00{col 63}{space 3}0.318{col 71}{space 4}-.5688926{col 84}{space 3} .1848177
{txt}{space 24}2006  {c |}{col 31}{res}{space 2} -.539834{col 43}{space 2} .3217395{col 54}{space 1}   -1.68{col 63}{space 3}0.093{col 71}{space 4}-1.170432{col 84}{space 3} .0907639
{txt}{space 24}2007  {c |}{col 31}{res}{space 2}  -.53006{col 43}{space 2} .2970273{col 54}{space 1}   -1.78{col 63}{space 3}0.074{col 71}{space 4}-1.112223{col 84}{space 3} .0521027
{txt}{space 24}2008  {c |}{col 31}{res}{space 2}-.3532084{col 43}{space 2} .2822716{col 54}{space 1}   -1.25{col 63}{space 3}0.211{col 71}{space 4}-.9064507{col 84}{space 3} .2000338
{txt}{space 24}2009  {c |}{col 31}{res}{space 2}-.5617474{col 43}{space 2} .2570556{col 54}{space 1}   -2.19{col 63}{space 3}0.029{col 71}{space 4}-1.065567{col 84}{space 3}-.0579276
{txt}{space 24}2010  {c |}{col 31}{res}{space 2}-1.275416{col 43}{space 2} .3549808{col 54}{space 1}   -3.59{col 63}{space 3}0.000{col 71}{space 4}-1.971166{col 84}{space 3}-.5796667
{txt}{space 24}2011  {c |}{col 31}{res}{space 2}-.9020516{col 43}{space 2} .4780969{col 54}{space 1}   -1.89{col 63}{space 3}0.059{col 71}{space 4}-1.839104{col 84}{space 3} .0350011
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2}-2.181969{col 43}{space 2} 1.091895{col 54}{space 1}   -2.00{col 63}{space 3}0.046{col 71}{space 4}-4.322044{col 84}{space 3}-.0418945
{txt}{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                     /lndelta {c |}{col 31}{res}{space 2} .1652647{col 43}{space 2} .2122822{col 71}{space 4}-.2508007{col 84}{space 3} .5813301
{txt}{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                        delta{col 31}{c |}{res}{space 2} 1.179705{col 43}{space 2} .2504304{col 71}{space 4} .7781774{col 84}{space 3} 1.788416
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Strikes (Internet)
. 
. nbreg strikes c.strikesy1_spatlag1##c.internet strikes_ylag repress_lag ///
> polity polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      474
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}   563.61
{txt}Log pseudolikelihood = {res}-624.97218                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 97:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 32}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 33}{c |}{col 45}    Robust
{col 1}                        strikes{col 33}{c |}      Coef.{col 45}   Std. Err.{col 57}      z{col 65}   P>|z|{col 73}     [95% Con{col 86}f. Interval]
{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}strikesy1_spatlag1 {c |}{col 33}{res}{space 2}-.0307154{col 45}{space 2}  .038686{col 56}{space 1}   -0.79{col 65}{space 3}0.427{col 73}{space 4}-.1065386{col 86}{space 3} .0451078
{txt}{space 23}internet {c |}{col 33}{res}{space 2} -.011712{col 45}{space 2} .0205217{col 56}{space 1}   -0.57{col 65}{space 3}0.568{col 73}{space 4}-.0519337{col 86}{space 3} .0285097
{txt}{space 31} {c |}
c.strikesy1_spatlag1#c.internet {c |}{col 33}{res}{space 2} .0072013{col 45}{space 2}  .007613{col 56}{space 1}    0.95{col 65}{space 3}0.344{col 73}{space 4}-.0077199{col 86}{space 3} .0221225
{txt}{space 31} {c |}
{space 19}strikes_ylag {c |}{col 33}{res}{space 2} .8716744{col 45}{space 2}  .106564{col 56}{space 1}    8.18{col 65}{space 3}0.000{col 73}{space 4} .6628129{col 86}{space 3} 1.080536
{txt}{space 20}repress_lag {c |}{col 33}{res}{space 2} .3943159{col 45}{space 2} .1529086{col 56}{space 1}    2.58{col 65}{space 3}0.010{col 73}{space 4} .0946206{col 86}{space 3} .6940112
{txt}{space 25}polity {c |}{col 33}{res}{space 2} .0458467{col 45}{space 2} .0261796{col 56}{space 1}    1.75{col 65}{space 3}0.080{col 73}{space 4}-.0054644{col 86}{space 3} .0971578
{txt}{space 24}polity2 {c |}{col 33}{res}{space 2}-.0063354{col 45}{space 2} .0048087{col 56}{space 1}   -1.32{col 65}{space 3}0.188{col 73}{space 4}-.0157603{col 86}{space 3} .0030895
{txt}{space 23}ln_gdppc {c |}{col 33}{res}{space 2} .0793458{col 45}{space 2} .1383702{col 56}{space 1}    0.57{col 65}{space 3}0.566{col 73}{space 4}-.1918548{col 86}{space 3} .3505464
{txt}{space 25}ln_pop {c |}{col 33}{res}{space 2} .1011148{col 45}{space 2} .0697059{col 56}{space 1}    1.45{col 65}{space 3}0.147{col 73}{space 4}-.0355063{col 86}{space 3} .2377359
{txt}{space 25}ethnic {c |}{col 33}{res}{space 2}-.0467395{col 45}{space 2} .4424054{col 56}{space 1}   -0.11{col 65}{space 3}0.916{col 73}{space 4} -.913838{col 86}{space 3} .8203591
{txt}{space 23}election {c |}{col 33}{res}{space 2}  .038145{col 45}{space 2} .1546519{col 56}{space 1}    0.25{col 65}{space 3}0.805{col 73}{space 4}-.2649672{col 86}{space 3} .3412571
{txt}{space 26}urban {c |}{col 33}{res}{space 2} .0021408{col 45}{space 2} .0077261{col 56}{space 1}    0.28{col 65}{space 3}0.782{col 73}{space 4}-.0130021{col 86}{space 3} .0172838
{txt}{space 12}percent_pop_refugee {c |}{col 33}{res}{space 2} 3.979695{col 45}{space 2} 9.690867{col 56}{space 1}    0.41{col 65}{space 3}0.681{col 73}{space 4}-15.01406{col 86}{space 3} 22.97345
{txt}{space 31} {c |}
{space 27}year {c |}
{space 26}2002  {c |}{col 33}{res}{space 2}-.3249033{col 45}{space 2} .2501124{col 56}{space 1}   -1.30{col 65}{space 3}0.194{col 73}{space 4}-.8151145{col 86}{space 3} .1653079
{txt}{space 26}2003  {c |}{col 33}{res}{space 2}-.4895283{col 45}{space 2} .2279672{col 56}{space 1}   -2.15{col 65}{space 3}0.032{col 73}{space 4}-.9363358{col 86}{space 3}-.0427209
{txt}{space 26}2004  {c |}{col 33}{res}{space 2}-.3857458{col 45}{space 2} .2827008{col 56}{space 1}   -1.36{col 65}{space 3}0.172{col 73}{space 4}-.9398292{col 86}{space 3} .1683376
{txt}{space 26}2005  {c |}{col 33}{res}{space 2}-.1955782{col 45}{space 2} .1868272{col 56}{space 1}   -1.05{col 65}{space 3}0.295{col 73}{space 4}-.5617527{col 86}{space 3} .1705963
{txt}{space 26}2006  {c |}{col 33}{res}{space 2}-.4922514{col 45}{space 2} .2805337{col 56}{space 1}   -1.75{col 65}{space 3}0.079{col 73}{space 4}-1.042087{col 86}{space 3} .0575847
{txt}{space 26}2007  {c |}{col 33}{res}{space 2} -.488007{col 45}{space 2} .2745373{col 56}{space 1}   -1.78{col 65}{space 3}0.075{col 73}{space 4} -1.02609{col 86}{space 3} .0500761
{txt}{space 26}2008  {c |}{col 33}{res}{space 2}-.3168106{col 45}{space 2} .2352936{col 56}{space 1}   -1.35{col 65}{space 3}0.178{col 73}{space 4}-.7779775{col 86}{space 3} .1443564
{txt}{space 26}2009  {c |}{col 33}{res}{space 2}-.4651874{col 45}{space 2} .2527662{col 56}{space 1}   -1.84{col 65}{space 3}0.066{col 73}{space 4}   -.9606{col 86}{space 3} .0302253
{txt}{space 26}2010  {c |}{col 33}{res}{space 2}-1.178655{col 45}{space 2} .3156373{col 56}{space 1}   -3.73{col 65}{space 3}0.000{col 73}{space 4}-1.797293{col 86}{space 3}-.5600174
{txt}{space 26}2011  {c |}{col 33}{res}{space 2}-.7194807{col 45}{space 2} .3831764{col 56}{space 1}   -1.88{col 65}{space 3}0.060{col 73}{space 4}-1.470493{col 86}{space 3} .0315311
{txt}{space 31} {c |}
{space 26}_cons {c |}{col 33}{res}{space 2}-2.494634{col 45}{space 2} 1.345781{col 56}{space 1}   -1.85{col 65}{space 3}0.064{col 73}{space 4}-5.132316{col 86}{space 3} .1430475
{txt}{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                       /lndelta {c |}{col 33}{res}{space 2} .1446105{col 45}{space 2} .2182423{col 73}{space 4}-.2831366{col 86}{space 3} .5723577
{txt}{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                          delta{col 33}{c |}{res}{space 2} 1.155589{col 45}{space 2} .2521985{col 73}{space 4} .7534169{col 86}{space 3} 1.772441
{txt}{hline 32}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Riots (Mobile)
. 
. nbreg riots c.rioty1_spatlag1##c.mobile riot_ylag repress_lag polity ///
> polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      477
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  2294.78
{txt}Log pseudolikelihood = {res}-714.63996                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 92:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}                     riots{col 28}{c |}      Coef.{col 40}   Std. Err.{col 52}      z{col 60}   P>|z|{col 68}     [95% Con{col 81}f. Interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}rioty1_spatlag1 {c |}{col 28}{res}{space 2}-.0601825{col 40}{space 2} .0476595{col 51}{space 1}   -1.26{col 60}{space 3}0.207{col 68}{space 4}-.1535933{col 81}{space 3} .0332283
{txt}{space 20}mobile {c |}{col 28}{res}{space 2} .0024674{col 40}{space 2} .0042511{col 51}{space 1}    0.58{col 60}{space 3}0.562{col 68}{space 4}-.0058646{col 81}{space 3} .0107994
{txt}{space 26} {c |}
c.rioty1_spatlag1#c.mobile {c |}{col 28}{res}{space 2}-.0005484{col 40}{space 2} .0008446{col 51}{space 1}   -0.65{col 60}{space 3}0.516{col 68}{space 4}-.0022039{col 81}{space 3}  .001107
{txt}{space 26} {c |}
{space 17}riot_ylag {c |}{col 28}{res}{space 2}  .583968{col 40}{space 2} .0823048{col 51}{space 1}    7.10{col 60}{space 3}0.000{col 68}{space 4} .4226535{col 81}{space 3} .7452825
{txt}{space 15}repress_lag {c |}{col 28}{res}{space 2} .5765526{col 40}{space 2} .1872789{col 51}{space 1}    3.08{col 60}{space 3}0.002{col 68}{space 4} .2094926{col 81}{space 3} .9436126
{txt}{space 20}polity {c |}{col 28}{res}{space 2} .0228434{col 40}{space 2} .0192441{col 51}{space 1}    1.19{col 60}{space 3}0.235{col 68}{space 4}-.0148743{col 81}{space 3} .0605612
{txt}{space 19}polity2 {c |}{col 28}{res}{space 2}-.0040817{col 40}{space 2} .0033957{col 51}{space 1}   -1.20{col 60}{space 3}0.229{col 68}{space 4}-.0107372{col 81}{space 3} .0025737
{txt}{space 18}ln_gdppc {c |}{col 28}{res}{space 2} .0032033{col 40}{space 2} .1346888{col 51}{space 1}    0.02{col 60}{space 3}0.981{col 68}{space 4}-.2607819{col 81}{space 3} .2671886
{txt}{space 20}ln_pop {c |}{col 28}{res}{space 2} .3963959{col 40}{space 2}  .066128{col 51}{space 1}    5.99{col 60}{space 3}0.000{col 68}{space 4} .2667873{col 81}{space 3} .5260045
{txt}{space 20}ethnic {c |}{col 28}{res}{space 2} .2436521{col 40}{space 2} .3008403{col 51}{space 1}    0.81{col 60}{space 3}0.418{col 68}{space 4} -.345984{col 81}{space 3} .8332882
{txt}{space 18}election {c |}{col 28}{res}{space 2} .4910474{col 40}{space 2} .1402733{col 51}{space 1}    3.50{col 60}{space 3}0.000{col 68}{space 4} .2161168{col 81}{space 3}  .765978
{txt}{space 21}urban {c |}{col 28}{res}{space 2} .0014822{col 40}{space 2} .0066904{col 51}{space 1}    0.22{col 60}{space 3}0.825{col 68}{space 4}-.0116307{col 81}{space 3}  .014595
{txt}{space 7}percent_pop_refugee {c |}{col 28}{res}{space 2} 5.779379{col 40}{space 2} 8.745573{col 51}{space 1}    0.66{col 60}{space 3}0.509{col 68}{space 4}-11.36163{col 81}{space 3} 22.92039
{txt}{space 26} {c |}
{space 22}year {c |}
{space 21}2002  {c |}{col 28}{res}{space 2}-.1697961{col 40}{space 2} .2138434{col 51}{space 1}   -0.79{col 60}{space 3}0.427{col 68}{space 4}-.5889216{col 81}{space 3} .2493293
{txt}{space 21}2003  {c |}{col 28}{res}{space 2}-.5119017{col 40}{space 2} .2881325{col 51}{space 1}   -1.78{col 60}{space 3}0.076{col 68}{space 4}-1.076631{col 81}{space 3} .0528276
{txt}{space 21}2004  {c |}{col 28}{res}{space 2}-.0157513{col 40}{space 2} .2295643{col 51}{space 1}   -0.07{col 60}{space 3}0.945{col 68}{space 4} -.465689{col 81}{space 3} .4341864
{txt}{space 21}2005  {c |}{col 28}{res}{space 2} .0550784{col 40}{space 2} .2392818{col 51}{space 1}    0.23{col 60}{space 3}0.818{col 68}{space 4}-.4139053{col 81}{space 3}  .524062
{txt}{space 21}2006  {c |}{col 28}{res}{space 2}-.2900016{col 40}{space 2} .2110508{col 51}{space 1}   -1.37{col 60}{space 3}0.169{col 68}{space 4}-.7036535{col 81}{space 3} .1236503
{txt}{space 21}2007  {c |}{col 28}{res}{space 2}-.2971492{col 40}{space 2} .2569414{col 51}{space 1}   -1.16{col 60}{space 3}0.247{col 68}{space 4}-.8007452{col 81}{space 3} .2064467
{txt}{space 21}2008  {c |}{col 28}{res}{space 2}-.5419621{col 40}{space 2} .3529161{col 51}{space 1}   -1.54{col 60}{space 3}0.125{col 68}{space 4}-1.233665{col 81}{space 3} .1497408
{txt}{space 21}2009  {c |}{col 28}{res}{space 2}-.4187312{col 40}{space 2} .2209586{col 51}{space 1}   -1.90{col 60}{space 3}0.058{col 68}{space 4} -.851802{col 81}{space 3} .0143397
{txt}{space 21}2010  {c |}{col 28}{res}{space 2}-.4582469{col 40}{space 2} .2330816{col 51}{space 1}   -1.97{col 60}{space 3}0.049{col 68}{space 4}-.9150785{col 81}{space 3}-.0014153
{txt}{space 21}2011  {c |}{col 28}{res}{space 2}-.3119106{col 40}{space 2}  .258731{col 51}{space 1}   -1.21{col 60}{space 3}0.228{col 68}{space 4} -.819014{col 81}{space 3} .1951929
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2}-6.957765{col 40}{space 2} .9490606{col 51}{space 1}   -7.33{col 60}{space 3}0.000{col 68}{space 4}-8.817889{col 81}{space 3} -5.09764
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  /lndelta {c |}{col 28}{res}{space 2} .2668703{col 40}{space 2} .2166041{col 68}{space 4} -.157666{col 81}{space 3} .6914066
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                     delta{col 28}{c |}{res}{space 2} 1.305871{col 40}{space 2} .2828571{col 68}{space 4}  .854135{col 81}{space 3} 1.996522
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Riots (Internet)
. 
. nbreg riots c.rioty1_spatlag1##c.internet riot_ylag repress_lag polity ///
> polity2 ln_gdppc ln_pop ethnic election urban percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant)
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      474
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  1677.59
{txt}Log pseudolikelihood = {res}-711.52268                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 94:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 30}{c |}{col 42}    Robust
{col 1}                       riots{col 30}{c |}      Coef.{col 42}   Std. Err.{col 54}      z{col 62}   P>|z|{col 70}     [95% Con{col 83}f. Interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}rioty1_spatlag1 {c |}{col 30}{res}{space 2}-.0843945{col 42}{space 2}  .041531{col 53}{space 1}   -2.03{col 62}{space 3}0.042{col 70}{space 4}-.1657937{col 83}{space 3}-.0029954
{txt}{space 20}internet {c |}{col 30}{res}{space 2} .0037029{col 42}{space 2}  .010349{col 53}{space 1}    0.36{col 62}{space 3}0.720{col 70}{space 4}-.0165808{col 83}{space 3} .0239867
{txt}{space 28} {c |}
c.rioty1_spatlag1#c.internet {c |}{col 30}{res}{space 2}  .004136{col 42}{space 2} .0033679{col 53}{space 1}    1.23{col 62}{space 3}0.219{col 70}{space 4}-.0024649{col 83}{space 3}  .010737
{txt}{space 28} {c |}
{space 19}riot_ylag {c |}{col 30}{res}{space 2} .5697765{col 42}{space 2} .0767515{col 53}{space 1}    7.42{col 62}{space 3}0.000{col 70}{space 4} .4193463{col 83}{space 3} .7202066
{txt}{space 17}repress_lag {c |}{col 30}{res}{space 2} .5670129{col 42}{space 2} .1843102{col 53}{space 1}    3.08{col 62}{space 3}0.002{col 70}{space 4} .2057716{col 83}{space 3} .9282542
{txt}{space 22}polity {c |}{col 30}{res}{space 2} .0265012{col 42}{space 2} .0196355{col 53}{space 1}    1.35{col 62}{space 3}0.177{col 70}{space 4}-.0119838{col 83}{space 3} .0649861
{txt}{space 21}polity2 {c |}{col 30}{res}{space 2}-.0047492{col 42}{space 2} .0035422{col 53}{space 1}   -1.34{col 62}{space 3}0.180{col 70}{space 4}-.0116917{col 83}{space 3} .0021933
{txt}{space 20}ln_gdppc {c |}{col 30}{res}{space 2}-.0164773{col 42}{space 2} .1266705{col 53}{space 1}   -0.13{col 62}{space 3}0.897{col 70}{space 4} -.264747{col 83}{space 3} .2317923
{txt}{space 22}ln_pop {c |}{col 30}{res}{space 2} .3904105{col 42}{space 2} .0690976{col 53}{space 1}    5.65{col 62}{space 3}0.000{col 70}{space 4} .2549818{col 83}{space 3} .5258392
{txt}{space 22}ethnic {c |}{col 30}{res}{space 2} .2955478{col 42}{space 2} .2830528{col 53}{space 1}    1.04{col 62}{space 3}0.296{col 70}{space 4}-.2592255{col 83}{space 3} .8503212
{txt}{space 20}election {c |}{col 30}{res}{space 2}  .476533{col 42}{space 2} .1380642{col 53}{space 1}    3.45{col 62}{space 3}0.001{col 70}{space 4} .2059323{col 83}{space 3} .7471338
{txt}{space 23}urban {c |}{col 30}{res}{space 2}  .002363{col 42}{space 2} .0070723{col 53}{space 1}    0.33{col 62}{space 3}0.738{col 70}{space 4}-.0114985{col 83}{space 3} .0162244
{txt}{space 9}percent_pop_refugee {c |}{col 30}{res}{space 2} 6.905349{col 42}{space 2} 8.381609{col 53}{space 1}    0.82{col 62}{space 3}0.410{col 70}{space 4}-9.522303{col 83}{space 3}   23.333
{txt}{space 28} {c |}
{space 24}year {c |}
{space 23}2002  {c |}{col 30}{res}{space 2}-.1842737{col 42}{space 2} .2094928{col 53}{space 1}   -0.88{col 62}{space 3}0.379{col 70}{space 4} -.594872{col 83}{space 3} .2263245
{txt}{space 23}2003  {c |}{col 30}{res}{space 2}-.5249251{col 42}{space 2} .2778059{col 53}{space 1}   -1.89{col 62}{space 3}0.059{col 70}{space 4}-1.069415{col 83}{space 3} .0195645
{txt}{space 23}2004  {c |}{col 30}{res}{space 2}-.0239062{col 42}{space 2} .2264882{col 53}{space 1}   -0.11{col 62}{space 3}0.916{col 70}{space 4}-.4678148{col 83}{space 3} .4200024
{txt}{space 23}2005  {c |}{col 30}{res}{space 2} .0338651{col 42}{space 2} .2351994{col 53}{space 1}    0.14{col 62}{space 3}0.886{col 70}{space 4}-.4271172{col 83}{space 3} .4948473
{txt}{space 23}2006  {c |}{col 30}{res}{space 2}-.2866222{col 42}{space 2} .2192344{col 53}{space 1}   -1.31{col 62}{space 3}0.191{col 70}{space 4}-.7163138{col 83}{space 3} .1430694
{txt}{space 23}2007  {c |}{col 30}{res}{space 2}-.3285212{col 42}{space 2} .2584142{col 53}{space 1}   -1.27{col 62}{space 3}0.204{col 70}{space 4}-.8350038{col 83}{space 3} .1779613
{txt}{space 23}2008  {c |}{col 30}{res}{space 2}-.6015161{col 42}{space 2} .3538366{col 53}{space 1}   -1.70{col 62}{space 3}0.089{col 70}{space 4}-1.295023{col 83}{space 3} .0919909
{txt}{space 23}2009  {c |}{col 30}{res}{space 2}-.4425681{col 42}{space 2} .2240085{col 53}{space 1}   -1.98{col 62}{space 3}0.048{col 70}{space 4}-.8816167{col 83}{space 3}-.0035196
{txt}{space 23}2010  {c |}{col 30}{res}{space 2}-.5001583{col 42}{space 2} .2508851{col 53}{space 1}   -1.99{col 62}{space 3}0.046{col 70}{space 4}-.9918841{col 83}{space 3}-.0084325
{txt}{space 23}2011  {c |}{col 30}{res}{space 2}-.4279467{col 42}{space 2} .2363653{col 53}{space 1}   -1.81{col 62}{space 3}0.070{col 70}{space 4}-.8912141{col 83}{space 3} .0353207
{txt}{space 28} {c |}
{space 23}_cons {c |}{col 30}{res}{space 2}-6.697831{col 42}{space 2} 1.039779{col 53}{space 1}   -6.44{col 62}{space 3}0.000{col 70}{space 4}-8.735761{col 83}{space 3}-4.659902
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                    /lndelta {c |}{col 30}{res}{space 2} .2666526{col 42}{space 2} .2132498{col 70}{space 4}-.1513093{col 83}{space 3} .6846145
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                       delta{col 30}{c |}{res}{space 2} 1.305587{col 42}{space 2} .2784161{col 70}{space 4} .8595818{col 83}{space 3} 1.983007
{txt}{hline 29}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. **************
. 
. // MODELS FOR TABLE S-2
. 
. // Total Terror (Mobile)
. 
. nbreg terror_total c.terror_totaly1_spatlag1##c.mobile ///
> terror_totaly1_ylag repress_lag polity polity2 ln_gdppc ln_pop ethnic ///
> election urban percent_pop_refugee i.year, nolog cluster(ccode) ///
> dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      477
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  4040.45
{txt}Log pseudolikelihood = {res}-762.56298                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 92:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}              terror_total{col 28}{c |}      Coef.{col 40}   Std. Err.{col 52}      z{col 60}   P>|z|{col 68}     [95% Con{col 81}f. Interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}terror_totaly1_spatlag1 {c |}{col 28}{res}{space 2} .0082207{col 40}{space 2} .0305693{col 51}{space 1}    0.27{col 60}{space 3}0.788{col 68}{space 4}-.0516939{col 81}{space 3} .0681354
{txt}{space 20}mobile {c |}{col 28}{res}{space 2}  .002017{col 40}{space 2} .0040329{col 51}{space 1}    0.50{col 60}{space 3}0.617{col 68}{space 4}-.0058874{col 81}{space 3} .0099213
{txt}{space 26} {c |}
{space 1}c.terror_totaly1_spatlag1#{c |}
{space 18}c.mobile {c |}{col 28}{res}{space 2} -.000812{col 40}{space 2} .0009891{col 51}{space 1}   -0.82{col 60}{space 3}0.412{col 68}{space 4}-.0027507{col 81}{space 3} .0011266
{txt}{space 26} {c |}
{space 7}terror_totaly1_ylag {c |}{col 28}{res}{space 2} .9635306{col 40}{space 2} .0497336{col 51}{space 1}   19.37{col 60}{space 3}0.000{col 68}{space 4} .8660545{col 81}{space 3} 1.061007
{txt}{space 15}repress_lag {c |}{col 28}{res}{space 2}-.0415151{col 40}{space 2}  .126887{col 51}{space 1}   -0.33{col 60}{space 3}0.744{col 68}{space 4} -.290209{col 81}{space 3} .2071788
{txt}{space 20}polity {c |}{col 28}{res}{space 2}-.0354992{col 40}{space 2}  .019038{col 51}{space 1}   -1.86{col 60}{space 3}0.062{col 68}{space 4} -.072813{col 81}{space 3} .0018147
{txt}{space 19}polity2 {c |}{col 28}{res}{space 2} -.001064{col 40}{space 2} .0050288{col 51}{space 1}   -0.21{col 60}{space 3}0.832{col 68}{space 4}-.0109202{col 81}{space 3} .0087923
{txt}{space 18}ln_gdppc {c |}{col 28}{res}{space 2}-.0507216{col 40}{space 2} .1750746{col 51}{space 1}   -0.29{col 60}{space 3}0.772{col 68}{space 4}-.3938614{col 81}{space 3} .2924183
{txt}{space 20}ln_pop {c |}{col 28}{res}{space 2} .3173883{col 40}{space 2} .0896294{col 51}{space 1}    3.54{col 60}{space 3}0.000{col 68}{space 4} .1417178{col 81}{space 3} .4930587
{txt}{space 20}ethnic {c |}{col 28}{res}{space 2}-.4173271{col 40}{space 2} .2886612{col 51}{space 1}   -1.45{col 60}{space 3}0.148{col 68}{space 4}-.9830927{col 81}{space 3} .1484384
{txt}{space 18}election {c |}{col 28}{res}{space 2} .3719379{col 40}{space 2} .1679762{col 51}{space 1}    2.21{col 60}{space 3}0.027{col 68}{space 4} .0427106{col 81}{space 3} .7011653
{txt}{space 21}urban {c |}{col 28}{res}{space 2}-.0020123{col 40}{space 2} .0075002{col 51}{space 1}   -0.27{col 60}{space 3}0.788{col 68}{space 4}-.0167123{col 81}{space 3} .0126878
{txt}{space 7}percent_pop_refugee {c |}{col 28}{res}{space 2} 6.801743{col 40}{space 2}  14.2855{col 51}{space 1}    0.48{col 60}{space 3}0.634{col 68}{space 4}-21.19733{col 81}{space 3} 34.80081
{txt}{space 26} {c |}
{space 22}year {c |}
{space 21}2002  {c |}{col 28}{res}{space 2} .0406496{col 40}{space 2} .2631115{col 51}{space 1}    0.15{col 60}{space 3}0.877{col 68}{space 4}-.4750394{col 81}{space 3} .5563387
{txt}{space 21}2003  {c |}{col 28}{res}{space 2}-.3272085{col 40}{space 2} .2440491{col 51}{space 1}   -1.34{col 60}{space 3}0.180{col 68}{space 4}-.8055361{col 81}{space 3}  .151119
{txt}{space 21}2004  {c |}{col 28}{res}{space 2}-.3665802{col 40}{space 2} .2936972{col 51}{space 1}   -1.25{col 60}{space 3}0.212{col 68}{space 4}-.9422162{col 81}{space 3} .2090557
{txt}{space 21}2005  {c |}{col 28}{res}{space 2} .4893617{col 40}{space 2} .2654185{col 51}{space 1}    1.84{col 60}{space 3}0.065{col 68}{space 4}-.0308489{col 81}{space 3} 1.009572
{txt}{space 21}2006  {c |}{col 28}{res}{space 2}  .483051{col 40}{space 2} .3135495{col 51}{space 1}    1.54{col 60}{space 3}0.123{col 68}{space 4}-.1314947{col 81}{space 3} 1.097597
{txt}{space 21}2007  {c |}{col 28}{res}{space 2} .2901032{col 40}{space 2} .2691998{col 51}{space 1}    1.08{col 60}{space 3}0.281{col 68}{space 4}-.2375187{col 81}{space 3} .8177251
{txt}{space 21}2008  {c |}{col 28}{res}{space 2} .6538361{col 40}{space 2} .2428188{col 51}{space 1}    2.69{col 60}{space 3}0.007{col 68}{space 4} .1779199{col 81}{space 3} 1.129752
{txt}{space 21}2009  {c |}{col 28}{res}{space 2} .0142418{col 40}{space 2} .2939773{col 51}{space 1}    0.05{col 60}{space 3}0.961{col 68}{space 4}-.5619432{col 81}{space 3} .5904267
{txt}{space 21}2010  {c |}{col 28}{res}{space 2} .3599292{col 40}{space 2} .2687151{col 51}{space 1}    1.34{col 60}{space 3}0.180{col 68}{space 4}-.1667427{col 81}{space 3} .8866012
{txt}{space 21}2011  {c |}{col 28}{res}{space 2} .1887722{col 40}{space 2} .3510837{col 51}{space 1}    0.54{col 60}{space 3}0.591{col 68}{space 4}-.4993392{col 81}{space 3} .8768835
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2} -4.99397{col 40}{space 2} 1.651339{col 51}{space 1}   -3.02{col 60}{space 3}0.002{col 68}{space 4}-8.230536{col 81}{space 3}-1.757404
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  /lndelta {c |}{col 28}{res}{space 2} 1.697622{col 40}{space 2} .1955999{col 68}{space 4} 1.314254{col 81}{space 3} 2.080991
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                     delta{col 28}{c |}{res}{space 2} 5.460947{col 40}{space 2} 1.068161{col 68}{space 4} 3.721972{col 81}{space 3} 8.012405
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Total Terror (Internet)
. 
. nbreg terror_total c.terror_totaly1_spatlag1##c.internet ///
> terror_totaly1_ylag repress_lag polity polity2 ln_gdppc ln_pop ethnic ///
> election urban percent_pop_refugee i.year, nolog cluster(ccode) ///
> dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      474
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  4039.06
{txt}Log pseudolikelihood = {res}-754.02118                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 92:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}              terror_total{col 28}{c |}      Coef.{col 40}   Std. Err.{col 52}      z{col 60}   P>|z|{col 68}     [95% Con{col 81}f. Interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}terror_totaly1_spatlag1 {c |}{col 28}{res}{space 2}-.0036687{col 40}{space 2}  .025996{col 51}{space 1}   -0.14{col 60}{space 3}0.888{col 68}{space 4}  -.05462{col 81}{space 3} .0472826
{txt}{space 18}internet {c |}{col 28}{res}{space 2} .0235889{col 40}{space 2}   .02653{col 51}{space 1}    0.89{col 60}{space 3}0.374{col 68}{space 4}-.0284091{col 81}{space 3} .0755868
{txt}{space 26} {c |}
{space 1}c.terror_totaly1_spatlag1#{c |}
{space 16}c.internet {c |}{col 28}{res}{space 2}-.0032332{col 40}{space 2} .0078215{col 51}{space 1}   -0.41{col 60}{space 3}0.679{col 68}{space 4} -.018563{col 81}{space 3} .0120966
{txt}{space 26} {c |}
{space 7}terror_totaly1_ylag {c |}{col 28}{res}{space 2} .9631298{col 40}{space 2} .0504192{col 51}{space 1}   19.10{col 60}{space 3}0.000{col 68}{space 4}   .86431{col 81}{space 3}  1.06195
{txt}{space 15}repress_lag {c |}{col 28}{res}{space 2}-.0974499{col 40}{space 2}  .131062{col 51}{space 1}   -0.74{col 60}{space 3}0.457{col 68}{space 4}-.3543267{col 81}{space 3} .1594269
{txt}{space 20}polity {c |}{col 28}{res}{space 2} -.031978{col 40}{space 2}  .018824{col 51}{space 1}   -1.70{col 60}{space 3}0.089{col 68}{space 4}-.0688723{col 81}{space 3} .0049164
{txt}{space 19}polity2 {c |}{col 28}{res}{space 2}-.0010803{col 40}{space 2} .0049651{col 51}{space 1}   -0.22{col 60}{space 3}0.828{col 68}{space 4}-.0108118{col 81}{space 3} .0086512
{txt}{space 18}ln_gdppc {c |}{col 28}{res}{space 2}-.1253965{col 40}{space 2} .1397753{col 51}{space 1}   -0.90{col 60}{space 3}0.370{col 68}{space 4}-.3993512{col 81}{space 3} .1485581
{txt}{space 20}ln_pop {c |}{col 28}{res}{space 2} .3085516{col 40}{space 2} .0833661{col 51}{space 1}    3.70{col 60}{space 3}0.000{col 68}{space 4} .1451571{col 81}{space 3} .4719461
{txt}{space 20}ethnic {c |}{col 28}{res}{space 2}-.4215458{col 40}{space 2} .2706977{col 51}{space 1}   -1.56{col 60}{space 3}0.119{col 68}{space 4}-.9521037{col 81}{space 3}  .109012
{txt}{space 18}election {c |}{col 28}{res}{space 2} .3493518{col 40}{space 2} .1499043{col 51}{space 1}    2.33{col 60}{space 3}0.020{col 68}{space 4} .0555447{col 81}{space 3}  .643159
{txt}{space 21}urban {c |}{col 28}{res}{space 2}-.0011976{col 40}{space 2}  .007284{col 51}{space 1}   -0.16{col 60}{space 3}0.869{col 68}{space 4} -.015474{col 81}{space 3} .0130787
{txt}{space 7}percent_pop_refugee {c |}{col 28}{res}{space 2} 9.729281{col 40}{space 2} 14.56676{col 51}{space 1}    0.67{col 60}{space 3}0.504{col 68}{space 4}-18.82104{col 81}{space 3}  38.2796
{txt}{space 26} {c |}
{space 22}year {c |}
{space 21}2002  {c |}{col 28}{res}{space 2} .0568807{col 40}{space 2} .2695088{col 51}{space 1}    0.21{col 60}{space 3}0.833{col 68}{space 4}-.4713469{col 81}{space 3} .5851082
{txt}{space 21}2003  {c |}{col 28}{res}{space 2} -.326532{col 40}{space 2} .2413977{col 51}{space 1}   -1.35{col 60}{space 3}0.176{col 68}{space 4}-.7996628{col 81}{space 3} .1465987
{txt}{space 21}2004  {c |}{col 28}{res}{space 2}-.4092719{col 40}{space 2} .3016997{col 51}{space 1}   -1.36{col 60}{space 3}0.175{col 68}{space 4}-1.000592{col 81}{space 3} .1820485
{txt}{space 21}2005  {c |}{col 28}{res}{space 2} .4777561{col 40}{space 2} .2600559{col 51}{space 1}    1.84{col 60}{space 3}0.066{col 68}{space 4} -.031944{col 81}{space 3} .9874562
{txt}{space 21}2006  {c |}{col 28}{res}{space 2} .4867207{col 40}{space 2} .3126993{col 51}{space 1}    1.56{col 60}{space 3}0.120{col 68}{space 4}-.1261587{col 81}{space 3}   1.0996
{txt}{space 21}2007  {c |}{col 28}{res}{space 2} .2490452{col 40}{space 2} .2803307{col 51}{space 1}    0.89{col 60}{space 3}0.374{col 68}{space 4}-.3003928{col 81}{space 3} .7984832
{txt}{space 21}2008  {c |}{col 28}{res}{space 2} .5426273{col 40}{space 2} .2782168{col 51}{space 1}    1.95{col 60}{space 3}0.051{col 68}{space 4}-.0026676{col 81}{space 3} 1.087922
{txt}{space 21}2009  {c |}{col 28}{res}{space 2}-.1414454{col 40}{space 2} .3273926{col 51}{space 1}   -0.43{col 60}{space 3}0.666{col 68}{space 4} -.783123{col 81}{space 3} .5002322
{txt}{space 21}2010  {c |}{col 28}{res}{space 2} .2548797{col 40}{space 2} .2251241{col 51}{space 1}    1.13{col 60}{space 3}0.258{col 68}{space 4}-.1863556{col 81}{space 3} .6961149
{txt}{space 21}2011  {c |}{col 28}{res}{space 2} .0419758{col 40}{space 2} .3177066{col 51}{space 1}    0.13{col 60}{space 3}0.895{col 68}{space 4}-.5807177{col 81}{space 3} .6646693
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2}-4.335389{col 40}{space 2} 1.615931{col 51}{space 1}   -2.68{col 60}{space 3}0.007{col 68}{space 4}-7.502555{col 81}{space 3}-1.168223
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  /lndelta {c |}{col 28}{res}{space 2} 1.705671{col 40}{space 2} .1931409{col 68}{space 4} 1.327122{col 81}{space 3} 2.084221
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                     delta{col 28}{c |}{res}{space 2}  5.50508{col 40}{space 2} 1.063256{col 68}{space 4} 3.770177{col 81}{space 3} 8.038324
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Terror Gov Target (Mobile)
. 
. nbreg terror_gov_target c.terror_gov_targety1_spatlag1##c.mobile ///
> terror_gov_targety1_ylag repress_lag polity polity2 ln_gdppc ln_pop ethnic ///
> election urban percent_pop_refugee i.year, nolog cluster(ccode) ///
> dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      477
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  4684.34
{txt}Log pseudolikelihood = {res}-469.06711                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 97:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 32}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 33}{c |}{col 45}    Robust
{col 1}              terror_gov_target{col 33}{c |}      Coef.{col 45}   Std. Err.{col 57}      z{col 65}   P>|z|{col 73}     [95% Con{col 86}f. Interval]
{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}terror_gov_targety1_spatlag1 {c |}{col 33}{res}{space 2} .0933978{col 45}{space 2} .0544014{col 56}{space 1}    1.72{col 65}{space 3}0.086{col 73}{space 4}-.0132271{col 86}{space 3} .2000227
{txt}{space 25}mobile {c |}{col 33}{res}{space 2} .0021434{col 45}{space 2} .0035352{col 56}{space 1}    0.61{col 65}{space 3}0.544{col 73}{space 4}-.0047854{col 86}{space 3} .0090722
{txt}{space 31} {c |}
{space 1}c.terror_gov_targety1_spatlag1#{c |}
{space 23}c.mobile {c |}{col 33}{res}{space 2}-.0044699{col 45}{space 2} .0013917{col 56}{space 1}   -3.21{col 65}{space 3}0.001{col 73}{space 4}-.0071976{col 86}{space 3}-.0017423
{txt}{space 31} {c |}
{space 7}terror_gov_targety1_ylag {c |}{col 33}{res}{space 2} 1.295675{col 45}{space 2} .0902349{col 56}{space 1}   14.36{col 65}{space 3}0.000{col 73}{space 4} 1.118818{col 86}{space 3} 1.472532
{txt}{space 20}repress_lag {c |}{col 33}{res}{space 2} .1360609{col 45}{space 2} .1240669{col 56}{space 1}    1.10{col 65}{space 3}0.273{col 73}{space 4}-.1071058{col 86}{space 3} .3792275
{txt}{space 25}polity {c |}{col 33}{res}{space 2}-.0324581{col 45}{space 2} .0222063{col 56}{space 1}   -1.46{col 65}{space 3}0.144{col 73}{space 4}-.0759817{col 86}{space 3} .0110655
{txt}{space 24}polity2 {c |}{col 33}{res}{space 2} .0048696{col 45}{space 2} .0063236{col 56}{space 1}    0.77{col 65}{space 3}0.441{col 73}{space 4}-.0075245{col 86}{space 3} .0172637
{txt}{space 23}ln_gdppc {c |}{col 33}{res}{space 2}-.0305196{col 45}{space 2} .1500571{col 56}{space 1}   -0.20{col 65}{space 3}0.839{col 73}{space 4}-.3246261{col 86}{space 3}  .263587
{txt}{space 25}ln_pop {c |}{col 33}{res}{space 2}  .356535{col 45}{space 2} .1053083{col 56}{space 1}    3.39{col 65}{space 3}0.001{col 73}{space 4} .1501345{col 86}{space 3} .5629356
{txt}{space 25}ethnic {c |}{col 33}{res}{space 2}-.3450829{col 45}{space 2} .4581387{col 56}{space 1}   -0.75{col 65}{space 3}0.451{col 73}{space 4}-1.243018{col 86}{space 3} .5528525
{txt}{space 23}election {c |}{col 33}{res}{space 2}  .645402{col 45}{space 2} .1521556{col 56}{space 1}    4.24{col 65}{space 3}0.000{col 73}{space 4} .3471826{col 86}{space 3} .9436215
{txt}{space 26}urban {c |}{col 33}{res}{space 2}-.0056024{col 45}{space 2} .0085916{col 56}{space 1}   -0.65{col 65}{space 3}0.514{col 73}{space 4}-.0224417{col 86}{space 3} .0112369
{txt}{space 12}percent_pop_refugee {c |}{col 33}{res}{space 2} 3.587784{col 45}{space 2} 17.76044{col 56}{space 1}    0.20{col 65}{space 3}0.840{col 73}{space 4}-31.22204{col 86}{space 3} 38.39761
{txt}{space 31} {c |}
{space 27}year {c |}
{space 26}2002  {c |}{col 33}{res}{space 2}-.1242388{col 45}{space 2} .2821815{col 56}{space 1}   -0.44{col 65}{space 3}0.660{col 73}{space 4}-.6773044{col 86}{space 3} .4288269
{txt}{space 26}2003  {c |}{col 33}{res}{space 2} .0025578{col 45}{space 2} .3694356{col 56}{space 1}    0.01{col 65}{space 3}0.994{col 73}{space 4}-.7215228{col 86}{space 3} .7266383
{txt}{space 26}2004  {c |}{col 33}{res}{space 2}-.3377245{col 45}{space 2} .3354698{col 56}{space 1}   -1.01{col 65}{space 3}0.314{col 73}{space 4}-.9952332{col 86}{space 3} .3197842
{txt}{space 26}2005  {c |}{col 33}{res}{space 2} .6599403{col 45}{space 2} .4174477{col 56}{space 1}    1.58{col 65}{space 3}0.114{col 73}{space 4}-.1582421{col 86}{space 3} 1.478123
{txt}{space 26}2006  {c |}{col 33}{res}{space 2} .3395181{col 45}{space 2} .2729703{col 56}{space 1}    1.24{col 65}{space 3}0.214{col 73}{space 4}-.1954939{col 86}{space 3} .8745301
{txt}{space 26}2007  {c |}{col 33}{res}{space 2} .6701081{col 45}{space 2} .3549777{col 56}{space 1}    1.89{col 65}{space 3}0.059{col 73}{space 4}-.0256354{col 86}{space 3} 1.365852
{txt}{space 26}2008  {c |}{col 33}{res}{space 2} .9090317{col 45}{space 2} .3846572{col 56}{space 1}    2.36{col 65}{space 3}0.018{col 73}{space 4} .1551176{col 86}{space 3} 1.662946
{txt}{space 26}2009  {c |}{col 33}{res}{space 2}-.1089551{col 45}{space 2}  .365789{col 56}{space 1}   -0.30{col 65}{space 3}0.766{col 73}{space 4}-.8258885{col 86}{space 3} .6079782
{txt}{space 26}2010  {c |}{col 33}{res}{space 2} .7074678{col 45}{space 2} .2910065{col 56}{space 1}    2.43{col 65}{space 3}0.015{col 73}{space 4} .1371054{col 86}{space 3}  1.27783
{txt}{space 26}2011  {c |}{col 33}{res}{space 2} .9389424{col 45}{space 2} .3927591{col 56}{space 1}    2.39{col 65}{space 3}0.017{col 73}{space 4} .1691488{col 86}{space 3} 1.708736
{txt}{space 31} {c |}
{space 26}_cons {c |}{col 33}{res}{space 2} -7.08787{col 45}{space 2} 1.794839{col 56}{space 1}   -3.95{col 65}{space 3}0.000{col 73}{space 4}-10.60569{col 86}{space 3}-3.570051
{txt}{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                       /lndelta {c |}{col 33}{res}{space 2} .6818409{col 45}{space 2} .2096912{col 73}{space 4} .2708537{col 86}{space 3} 1.092828
{txt}{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                          delta{col 33}{c |}{res}{space 2} 1.977515{col 45}{space 2} .4146675{col 73}{space 4} 1.311083{col 86}{space 3} 2.982698
{txt}{hline 32}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Terror Gov Target (Internet)
. 
. nbreg terror_gov_target c.terror_gov_targety1_spatlag1##c.internet ///
> terror_gov_targety1_ylag repress_lag polity polity2 ln_gdppc ln_pop ethnic ///
> election urban percent_pop_refugee i.year, nolog cluster(ccode) ///
> dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      474
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  5440.70
{txt}Log pseudolikelihood = {res}-467.91258                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 97:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 32}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 33}{c |}{col 45}    Robust
{col 1}              terror_gov_target{col 33}{c |}      Coef.{col 45}   Std. Err.{col 57}      z{col 65}   P>|z|{col 73}     [95% Con{col 86}f. Interval]
{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}terror_gov_targety1_spatlag1 {c |}{col 33}{res}{space 2} .0137778{col 45}{space 2} .0571801{col 56}{space 1}    0.24{col 65}{space 3}0.810{col 73}{space 4}-.0982932{col 86}{space 3} .1258488
{txt}{space 23}internet {c |}{col 33}{res}{space 2} .0473847{col 45}{space 2} .0255065{col 56}{space 1}    1.86{col 65}{space 3}0.063{col 73}{space 4}-.0026072{col 86}{space 3} .0973766
{txt}{space 31} {c |}
{space 1}c.terror_gov_targety1_spatlag1#{c |}
{space 21}c.internet {c |}{col 33}{res}{space 2}-.0141966{col 45}{space 2}  .011079{col 56}{space 1}   -1.28{col 65}{space 3}0.200{col 73}{space 4} -.035911{col 86}{space 3} .0075179
{txt}{space 31} {c |}
{space 7}terror_gov_targety1_ylag {c |}{col 33}{res}{space 2} 1.268022{col 45}{space 2} .0945535{col 56}{space 1}   13.41{col 65}{space 3}0.000{col 73}{space 4}   1.0827{col 86}{space 3} 1.453343
{txt}{space 20}repress_lag {c |}{col 33}{res}{space 2}-.0699577{col 45}{space 2} .1601619{col 56}{space 1}   -0.44{col 65}{space 3}0.662{col 73}{space 4}-.3838693{col 86}{space 3} .2439539
{txt}{space 25}polity {c |}{col 33}{res}{space 2} -.037222{col 45}{space 2} .0218824{col 56}{space 1}   -1.70{col 65}{space 3}0.089{col 73}{space 4}-.0801107{col 86}{space 3} .0056667
{txt}{space 24}polity2 {c |}{col 33}{res}{space 2} .0050786{col 45}{space 2} .0055091{col 56}{space 1}    0.92{col 65}{space 3}0.357{col 73}{space 4} -.005719{col 86}{space 3} .0158762
{txt}{space 23}ln_gdppc {c |}{col 33}{res}{space 2}-.1762913{col 45}{space 2} .1342025{col 56}{space 1}   -1.31{col 65}{space 3}0.189{col 73}{space 4}-.4393233{col 86}{space 3} .0867407
{txt}{space 25}ln_pop {c |}{col 33}{res}{space 2} .3499455{col 45}{space 2} .1073843{col 56}{space 1}    3.26{col 65}{space 3}0.001{col 73}{space 4} .1394761{col 86}{space 3} .5604148
{txt}{space 25}ethnic {c |}{col 33}{res}{space 2}-.2739074{col 45}{space 2} .4923256{col 56}{space 1}   -0.56{col 65}{space 3}0.578{col 73}{space 4}-1.238848{col 86}{space 3} .6910331
{txt}{space 23}election {c |}{col 33}{res}{space 2} .5673206{col 45}{space 2}  .156844{col 56}{space 1}    3.62{col 65}{space 3}0.000{col 73}{space 4}  .259912{col 86}{space 3} .8747292
{txt}{space 26}urban {c |}{col 33}{res}{space 2}-.0076204{col 45}{space 2} .0078787{col 56}{space 1}   -0.97{col 65}{space 3}0.333{col 73}{space 4}-.0230624{col 86}{space 3} .0078215
{txt}{space 12}percent_pop_refugee {c |}{col 33}{res}{space 2} 8.911407{col 45}{space 2} 15.83197{col 56}{space 1}    0.56{col 65}{space 3}0.574{col 73}{space 4}-22.11869{col 86}{space 3}  39.9415
{txt}{space 31} {c |}
{space 27}year {c |}
{space 26}2002  {c |}{col 33}{res}{space 2}-.0499106{col 45}{space 2} .3116408{col 56}{space 1}   -0.16{col 65}{space 3}0.873{col 73}{space 4}-.6607154{col 86}{space 3} .5608941
{txt}{space 26}2003  {c |}{col 33}{res}{space 2}-.0412308{col 45}{space 2} .4482359{col 56}{space 1}   -0.09{col 65}{space 3}0.927{col 73}{space 4}-.9197569{col 86}{space 3} .8372954
{txt}{space 26}2004  {c |}{col 33}{res}{space 2}-.2829032{col 45}{space 2} .4083318{col 56}{space 1}   -0.69{col 65}{space 3}0.488{col 73}{space 4}-1.083219{col 86}{space 3} .5174124
{txt}{space 26}2005  {c |}{col 33}{res}{space 2} .5951478{col 45}{space 2} .4730222{col 56}{space 1}    1.26{col 65}{space 3}0.208{col 73}{space 4}-.3319587{col 86}{space 3} 1.522254
{txt}{space 26}2006  {c |}{col 33}{res}{space 2} .3806563{col 45}{space 2} .2670537{col 56}{space 1}    1.43{col 65}{space 3}0.154{col 73}{space 4}-.1427593{col 86}{space 3} .9040718
{txt}{space 26}2007  {c |}{col 33}{res}{space 2} .3006631{col 45}{space 2} .3313378{col 56}{space 1}    0.91{col 65}{space 3}0.364{col 73}{space 4} -.348747{col 86}{space 3} .9500733
{txt}{space 26}2008  {c |}{col 33}{res}{space 2} .5621555{col 45}{space 2} .3497436{col 56}{space 1}    1.61{col 65}{space 3}0.108{col 73}{space 4}-.1233293{col 86}{space 3}  1.24764
{txt}{space 26}2009  {c |}{col 33}{res}{space 2}-.5378496{col 45}{space 2} .3360303{col 56}{space 1}   -1.60{col 65}{space 3}0.109{col 73}{space 4}-1.196457{col 86}{space 3} .1207578
{txt}{space 26}2010  {c |}{col 33}{res}{space 2} .3097084{col 45}{space 2} .2367942{col 56}{space 1}    1.31{col 65}{space 3}0.191{col 73}{space 4}-.1543996{col 86}{space 3} .7738165
{txt}{space 26}2011  {c |}{col 33}{res}{space 2} .3794309{col 45}{space 2} .4304208{col 56}{space 1}    0.88{col 65}{space 3}0.378{col 73}{space 4}-.4641784{col 86}{space 3}  1.22304
{txt}{space 31} {c |}
{space 26}_cons {c |}{col 33}{res}{space 2}-5.692334{col 45}{space 2} 1.853886{col 56}{space 1}   -3.07{col 65}{space 3}0.002{col 73}{space 4}-9.325883{col 86}{space 3}-2.058784
{txt}{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                       /lndelta {c |}{col 33}{res}{space 2} .8028844{col 45}{space 2} .1969786{col 73}{space 4} .4168136{col 86}{space 3} 1.188955
{txt}{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                          delta{col 33}{c |}{res}{space 2}  2.23197{col 45}{space 2} .4396502{col 73}{space 4}  1.51712{col 86}{space 3} 3.283649
{txt}{hline 32}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. **************
. 
. // MODELS FOR TABLE S-3
. 
. // Running models with additional interactions:
. 
. // Urban
. 
. nbreg agv c.agvy1_spatlag##c.urban internet agvy1_ylag repress_lag polity ///
> polity2 ln_gdppc ln_pop ethnic election percent_pop_refugee i.year, ///
> nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      474
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}23{txt})   =  {res}  1696.08
{txt}Log pseudolikelihood = {res}-368.15254                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 89:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}                    agv{col 25}{c |}      Coef.{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [95% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}agvy1_spatlag {c |}{col 25}{res}{space 2}-.3293933{col 37}{space 2} .1849459{col 48}{space 1}   -1.78{col 57}{space 3}0.075{col 65}{space 4}-.6918806{col 78}{space 3} .0330939
{txt}{space 18}urban {c |}{col 25}{res}{space 2}-.0237241{col 37}{space 2} .0133911{col 48}{space 1}   -1.77{col 57}{space 3}0.076{col 65}{space 4}-.0499702{col 78}{space 3}  .002522
{txt}{space 23} {c |}
c.agvy1_spatlag#c.urban {c |}{col 25}{res}{space 2} .0114313{col 37}{space 2} .0042738{col 48}{space 1}    2.67{col 57}{space 3}0.007{col 65}{space 4} .0030548{col 78}{space 3} .0198077
{txt}{space 23} {c |}
{space 15}internet {c |}{col 25}{res}{space 2} .0280357{col 37}{space 2} .0145038{col 48}{space 1}    1.93{col 57}{space 3}0.053{col 65}{space 4}-.0003912{col 78}{space 3} .0564626
{txt}{space 13}agvy1_ylag {c |}{col 25}{res}{space 2} 1.056762{col 37}{space 2} .1420156{col 48}{space 1}    7.44{col 57}{space 3}0.000{col 65}{space 4} .7784163{col 78}{space 3} 1.335107
{txt}{space 12}repress_lag {c |}{col 25}{res}{space 2} .3511272{col 37}{space 2} .2997719{col 48}{space 1}    1.17{col 57}{space 3}0.241{col 65}{space 4}-.2364151{col 78}{space 3} .9386694
{txt}{space 17}polity {c |}{col 25}{res}{space 2} .0175646{col 37}{space 2} .0297788{col 48}{space 1}    0.59{col 57}{space 3}0.555{col 65}{space 4}-.0408008{col 78}{space 3} .0759299
{txt}{space 16}polity2 {c |}{col 25}{res}{space 2}-.0026703{col 37}{space 2} .0053501{col 48}{space 1}   -0.50{col 57}{space 3}0.618{col 65}{space 4}-.0131563{col 78}{space 3} .0078156
{txt}{space 15}ln_gdppc {c |}{col 25}{res}{space 2}-.0751888{col 37}{space 2}  .213979{col 48}{space 1}   -0.35{col 57}{space 3}0.725{col 65}{space 4}-.4945799{col 78}{space 3} .3442024
{txt}{space 17}ln_pop {c |}{col 25}{res}{space 2} .2952487{col 37}{space 2} .1452965{col 48}{space 1}    2.03{col 57}{space 3}0.042{col 65}{space 4} .0104728{col 78}{space 3} .5800247
{txt}{space 17}ethnic {c |}{col 25}{res}{space 2} .2888472{col 37}{space 2}  .442265{col 48}{space 1}    0.65{col 57}{space 3}0.514{col 65}{space 4}-.5779763{col 78}{space 3} 1.155671
{txt}{space 15}election {c |}{col 25}{res}{space 2} .2088263{col 37}{space 2} .2322916{col 48}{space 1}    0.90{col 57}{space 3}0.369{col 65}{space 4}-.2464569{col 78}{space 3} .6641094
{txt}{space 4}percent_pop_refugee {c |}{col 25}{res}{space 2}  5.36518{col 37}{space 2} 16.39853{col 48}{space 1}    0.33{col 57}{space 3}0.744{col 65}{space 4}-26.77535{col 78}{space 3} 37.50571
{txt}{space 23} {c |}
{space 19}year {c |}
{space 18}2002  {c |}{col 25}{res}{space 2} .8466493{col 37}{space 2} .7276592{col 48}{space 1}    1.16{col 57}{space 3}0.245{col 65}{space 4}-.5795364{col 78}{space 3} 2.272835
{txt}{space 18}2003  {c |}{col 25}{res}{space 2} .9799942{col 37}{space 2} .6602127{col 48}{space 1}    1.48{col 57}{space 3}0.138{col 65}{space 4}-.3139988{col 78}{space 3} 2.273987
{txt}{space 18}2004  {c |}{col 25}{res}{space 2} 1.240735{col 37}{space 2} .7795295{col 48}{space 1}    1.59{col 57}{space 3}0.111{col 65}{space 4}-.2871146{col 78}{space 3} 2.768585
{txt}{space 18}2005  {c |}{col 25}{res}{space 2} 1.405361{col 37}{space 2} .6580794{col 48}{space 1}    2.14{col 57}{space 3}0.033{col 65}{space 4} .1155486{col 78}{space 3} 2.695172
{txt}{space 18}2006  {c |}{col 25}{res}{space 2} 1.658118{col 37}{space 2}  .691061{col 48}{space 1}    2.40{col 57}{space 3}0.016{col 65}{space 4} .3036637{col 78}{space 3} 3.012573
{txt}{space 18}2007  {c |}{col 25}{res}{space 2} .7843292{col 37}{space 2} .6504365{col 48}{space 1}    1.21{col 57}{space 3}0.228{col 65}{space 4} -.490503{col 78}{space 3} 2.059161
{txt}{space 18}2008  {c |}{col 25}{res}{space 2} .9578797{col 37}{space 2} .6609434{col 48}{space 1}    1.45{col 57}{space 3}0.147{col 65}{space 4}-.3375455{col 78}{space 3} 2.253305
{txt}{space 18}2009  {c |}{col 25}{res}{space 2} 1.050144{col 37}{space 2} .8220445{col 48}{space 1}    1.28{col 57}{space 3}0.201{col 65}{space 4} -.561034{col 78}{space 3} 2.661321
{txt}{space 18}2010  {c |}{col 25}{res}{space 2}  1.52713{col 37}{space 2} .7142913{col 48}{space 1}    2.14{col 57}{space 3}0.033{col 65}{space 4} .1271451{col 78}{space 3} 2.927116
{txt}{space 18}2011  {c |}{col 25}{res}{space 2}  1.31962{col 37}{space 2} .7935823{col 48}{space 1}    1.66{col 57}{space 3}0.096{col 65}{space 4}-.2357723{col 78}{space 3} 2.875013
{txt}{space 23} {c |}
{space 18}_cons {c |}{col 25}{res}{space 2}-6.515856{col 37}{space 2} 2.287129{col 48}{space 1}   -2.85{col 57}{space 3}0.004{col 65}{space 4}-10.99855{col 78}{space 3}-2.033166
{txt}{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               /lndelta {c |}{col 25}{res}{space 2} .3338504{col 37}{space 2} .1996277{col 65}{space 4}-.0574128{col 78}{space 3} .7251135
{txt}{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                  delta{col 25}{c |}{res}{space 2} 1.396334{col 37}{space 2}  .278747{col 65}{space 4} .9442042{col 78}{space 3} 2.064966
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Refugee
. 
. nbreg agv c.agvy1_spatlag##c.percent_pop_refugee urban agvy1_ylag ///
> repress_lag polity polity2 ln_gdppc ln_pop ethnic election i.year, nolog ///
> cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      481
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}22{txt})   =  {res}  1386.19
{txt}Log pseudolikelihood = {res}-381.83809                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 87:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35}    Robust
{col 1}                  agv{col 23}{c |}      Coef.{col 35}   Std. Err.{col 47}      z{col 55}   P>|z|{col 63}     [95% Con{col 76}f. Interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}agvy1_spatlag {c |}{col 23}{res}{space 2} .0525573{col 35}{space 2}  .083095{col 46}{space 1}    0.63{col 55}{space 3}0.527{col 63}{space 4} -.110306{col 76}{space 3} .2154205
{txt}{space 2}percent_pop_refugee {c |}{col 23}{res}{space 2} 33.80667{col 35}{space 2} 26.65694{col 46}{space 1}    1.27{col 55}{space 3}0.205{col 63}{space 4}-18.43998{col 76}{space 3} 86.05331
{txt}{space 21} {c |}
{space 6}c.agvy1_spatlag#{c |}
c.percent_pop_refugee {c |}{col 23}{res}{space 2}-10.91174{col 35}{space 2} 6.000657{col 46}{space 1}   -1.82{col 55}{space 3}0.069{col 63}{space 4}-22.67281{col 76}{space 3}  .849329
{txt}{space 21} {c |}
{space 16}urban {c |}{col 23}{res}{space 2} -.005531{col 35}{space 2} .0113887{col 46}{space 1}   -0.49{col 55}{space 3}0.627{col 63}{space 4}-.0278524{col 76}{space 3} .0167904
{txt}{space 11}agvy1_ylag {c |}{col 23}{res}{space 2} 1.128554{col 35}{space 2} .1596001{col 46}{space 1}    7.07{col 55}{space 3}0.000{col 63}{space 4} .8157439{col 76}{space 3} 1.441365
{txt}{space 10}repress_lag {c |}{col 23}{res}{space 2}  .351605{col 35}{space 2} .2935737{col 46}{space 1}    1.20{col 55}{space 3}0.231{col 63}{space 4}-.2237888{col 76}{space 3} .9269989
{txt}{space 15}polity {c |}{col 23}{res}{space 2}-.0041189{col 35}{space 2} .0260714{col 46}{space 1}   -0.16{col 55}{space 3}0.874{col 63}{space 4}-.0552179{col 76}{space 3} .0469801
{txt}{space 14}polity2 {c |}{col 23}{res}{space 2}-.0012423{col 35}{space 2} .0053438{col 46}{space 1}   -0.23{col 55}{space 3}0.816{col 63}{space 4} -.011716{col 76}{space 3} .0092314
{txt}{space 13}ln_gdppc {c |}{col 23}{res}{space 2} .0709313{col 35}{space 2} .2038387{col 46}{space 1}    0.35{col 55}{space 3}0.728{col 63}{space 4}-.3285852{col 76}{space 3} .4704479
{txt}{space 15}ln_pop {c |}{col 23}{res}{space 2} .3281623{col 35}{space 2} .1380229{col 46}{space 1}    2.38{col 55}{space 3}0.017{col 63}{space 4} .0576424{col 76}{space 3} .5986821
{txt}{space 15}ethnic {c |}{col 23}{res}{space 2} .2933805{col 35}{space 2} .4767295{col 46}{space 1}    0.62{col 55}{space 3}0.538{col 63}{space 4}-.6409922{col 76}{space 3} 1.227753
{txt}{space 13}election {c |}{col 23}{res}{space 2} .3538988{col 35}{space 2} .2165502{col 46}{space 1}    1.63{col 55}{space 3}0.102{col 63}{space 4}-.0705319{col 76}{space 3} .7783294
{txt}{space 21} {c |}
{space 17}year {c |}
{space 16}2002  {c |}{col 23}{res}{space 2} .9020646{col 35}{space 2} .7132706{col 46}{space 1}    1.26{col 55}{space 3}0.206{col 63}{space 4}-.4959201{col 76}{space 3} 2.300049
{txt}{space 16}2003  {c |}{col 23}{res}{space 2} 1.034558{col 35}{space 2} .6507074{col 46}{space 1}    1.59{col 55}{space 3}0.112{col 63}{space 4}-.2408045{col 76}{space 3} 2.309921
{txt}{space 16}2004  {c |}{col 23}{res}{space 2} 1.315213{col 35}{space 2} .7678286{col 46}{space 1}    1.71{col 55}{space 3}0.087{col 63}{space 4}-.1897037{col 76}{space 3} 2.820129
{txt}{space 16}2005  {c |}{col 23}{res}{space 2} 1.488696{col 35}{space 2} .6382129{col 46}{space 1}    2.33{col 55}{space 3}0.020{col 63}{space 4} .2378219{col 76}{space 3}  2.73957
{txt}{space 16}2006  {c |}{col 23}{res}{space 2} 1.720508{col 35}{space 2} .6537553{col 46}{space 1}    2.63{col 55}{space 3}0.008{col 63}{space 4} .4391716{col 76}{space 3} 3.001845
{txt}{space 16}2007  {c |}{col 23}{res}{space 2} .8191459{col 35}{space 2} .6441586{col 46}{space 1}    1.27{col 55}{space 3}0.203{col 63}{space 4}-.4433818{col 76}{space 3} 2.081674
{txt}{space 16}2008  {c |}{col 23}{res}{space 2} 1.217434{col 35}{space 2} .6153885{col 46}{space 1}    1.98{col 55}{space 3}0.048{col 63}{space 4} .0112943{col 76}{space 3} 2.423573
{txt}{space 16}2009  {c |}{col 23}{res}{space 2} 1.262391{col 35}{space 2}  .780086{col 46}{space 1}    1.62{col 55}{space 3}0.106{col 63}{space 4}-.2665494{col 76}{space 3} 2.791332
{txt}{space 16}2010  {c |}{col 23}{res}{space 2} 1.737476{col 35}{space 2} .6904584{col 46}{space 1}    2.52{col 55}{space 3}0.012{col 63}{space 4} .3842025{col 76}{space 3}  3.09075
{txt}{space 16}2011  {c |}{col 23}{res}{space 2} 1.645241{col 35}{space 2}   .73009{col 46}{space 1}    2.25{col 55}{space 3}0.024{col 63}{space 4} .2142914{col 76}{space 3} 3.076192
{txt}{space 21} {c |}
{space 16}_cons {c |}{col 23}{res}{space 2}-8.714538{col 35}{space 2} 2.158259{col 46}{space 1}   -4.04{col 55}{space 3}0.000{col 63}{space 4}-12.94465{col 76}{space 3}-4.484429
{txt}{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
             /lndelta {c |}{col 23}{res}{space 2} .4382752{col 35}{space 2}  .196367{col 63}{space 4} .0534029{col 76}{space 3} .8231475
{txt}{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                delta{col 23}{c |}{res}{space 2} 1.550031{col 35}{space 2} .3043751{col 63}{space 4} 1.054855{col 76}{space 3} 2.277658
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Affluence
. 
. nbreg agv c.agvy1_spatlag##c.ln_gdppc urban agvy1_ylag repress_lag polity ///
> polity2 ln_pop ethnic election percent_pop_refugee i.year, ///
> nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      481
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}22{txt})   =  {res}  1788.06
{txt}Log pseudolikelihood = {res}-372.7002                  {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 92:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}                       agv{col 28}{c |}      Coef.{col 40}   Std. Err.{col 52}      z{col 60}   P>|z|{col 68}     [95% Con{col 81}f. Interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}agvy1_spatlag {c |}{col 28}{res}{space 2}-1.502358{col 40}{space 2} .4115555{col 51}{space 1}   -3.65{col 60}{space 3}0.000{col 68}{space 4}-2.308992{col 81}{space 3}-.6957241
{txt}{space 18}ln_gdppc {c |}{col 28}{res}{space 2}-.5760627{col 40}{space 2} .2517138{col 51}{space 1}   -2.29{col 60}{space 3}0.022{col 68}{space 4}-1.069413{col 81}{space 3}-.0827128
{txt}{space 26} {c |}
c.agvy1_spatlag#c.ln_gdppc {c |}{col 28}{res}{space 2} .2416735{col 40}{space 2} .0633246{col 51}{space 1}    3.82{col 60}{space 3}0.000{col 68}{space 4} .1175595{col 81}{space 3} .3657875
{txt}{space 26} {c |}
{space 21}urban {c |}{col 28}{res}{space 2}  .006013{col 40}{space 2} .0092227{col 51}{space 1}    0.65{col 60}{space 3}0.514{col 68}{space 4}-.0120632{col 81}{space 3} .0240892
{txt}{space 16}agvy1_ylag {c |}{col 28}{res}{space 2} 1.137569{col 40}{space 2} .1361463{col 51}{space 1}    8.36{col 60}{space 3}0.000{col 68}{space 4} .8707266{col 81}{space 3}  1.40441
{txt}{space 15}repress_lag {c |}{col 28}{res}{space 2} .3338893{col 40}{space 2} .3103121{col 51}{space 1}    1.08{col 60}{space 3}0.282{col 68}{space 4}-.2743112{col 81}{space 3} .9420898
{txt}{space 20}polity {c |}{col 28}{res}{space 2} .0092647{col 40}{space 2} .0264381{col 51}{space 1}    0.35{col 60}{space 3}0.726{col 68}{space 4}-.0425531{col 81}{space 3} .0610824
{txt}{space 19}polity2 {c |}{col 28}{res}{space 2}  .003061{col 40}{space 2}  .006286{col 51}{space 1}    0.49{col 60}{space 3}0.626{col 68}{space 4}-.0092593{col 81}{space 3} .0153813
{txt}{space 20}ln_pop {c |}{col 28}{res}{space 2} .4152775{col 40}{space 2} .1350873{col 51}{space 1}    3.07{col 60}{space 3}0.002{col 68}{space 4} .1505113{col 81}{space 3} .6800437
{txt}{space 20}ethnic {c |}{col 28}{res}{space 2}-.1124803{col 40}{space 2} .4487923{col 51}{space 1}   -0.25{col 60}{space 3}0.802{col 68}{space 4} -.992097{col 81}{space 3} .7671365
{txt}{space 18}election {c |}{col 28}{res}{space 2} .1938549{col 40}{space 2} .2171748{col 51}{space 1}    0.89{col 60}{space 3}0.372{col 68}{space 4}-.2317999{col 81}{space 3} .6195098
{txt}{space 7}percent_pop_refugee {c |}{col 28}{res}{space 2} .7266465{col 40}{space 2} 13.24265{col 51}{space 1}    0.05{col 60}{space 3}0.956{col 68}{space 4}-25.22847{col 81}{space 3} 26.68176
{txt}{space 26} {c |}
{space 22}year {c |}
{space 21}2002  {c |}{col 28}{res}{space 2}  .955824{col 40}{space 2} .7493077{col 51}{space 1}    1.28{col 60}{space 3}0.202{col 68}{space 4}-.5127921{col 81}{space 3}  2.42444
{txt}{space 21}2003  {c |}{col 28}{res}{space 2} 1.046205{col 40}{space 2} .6438318{col 51}{space 1}    1.62{col 60}{space 3}0.104{col 68}{space 4}-.2156819{col 81}{space 3} 2.308092
{txt}{space 21}2004  {c |}{col 28}{res}{space 2} 1.448935{col 40}{space 2} .7651099{col 51}{space 1}    1.89{col 60}{space 3}0.058{col 68}{space 4}-.0506528{col 81}{space 3} 2.948523
{txt}{space 21}2005  {c |}{col 28}{res}{space 2} 1.576163{col 40}{space 2} .6318415{col 51}{space 1}    2.49{col 60}{space 3}0.013{col 68}{space 4} .3377762{col 81}{space 3} 2.814549
{txt}{space 21}2006  {c |}{col 28}{res}{space 2} 1.796421{col 40}{space 2} .6664495{col 51}{space 1}    2.70{col 60}{space 3}0.007{col 68}{space 4} .4902034{col 81}{space 3} 3.102638
{txt}{space 21}2007  {c |}{col 28}{res}{space 2} 1.010239{col 40}{space 2} .6468898{col 51}{space 1}    1.56{col 60}{space 3}0.118{col 68}{space 4}-.2576416{col 81}{space 3}  2.27812
{txt}{space 21}2008  {c |}{col 28}{res}{space 2} 1.351641{col 40}{space 2} .6115615{col 51}{space 1}    2.21{col 60}{space 3}0.027{col 68}{space 4} .1530022{col 81}{space 3} 2.550279
{txt}{space 21}2009  {c |}{col 28}{res}{space 2} 1.399395{col 40}{space 2} .7499667{col 51}{space 1}    1.87{col 60}{space 3}0.062{col 68}{space 4}-.0705123{col 81}{space 3} 2.869303
{txt}{space 21}2010  {c |}{col 28}{res}{space 2} 2.050622{col 40}{space 2}  .720226{col 51}{space 1}    2.85{col 60}{space 3}0.004{col 68}{space 4} .6390048{col 81}{space 3} 3.462239
{txt}{space 21}2011  {c |}{col 28}{res}{space 2} 1.742138{col 40}{space 2} .7293426{col 51}{space 1}    2.39{col 60}{space 3}0.017{col 68}{space 4} .3126524{col 81}{space 3} 3.171623
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2}-6.366955{col 40}{space 2} 1.928389{col 51}{space 1}   -3.30{col 60}{space 3}0.001{col 68}{space 4}-10.14653{col 81}{space 3}-2.587381
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  /lndelta {c |}{col 28}{res}{space 2}  .145529{col 40}{space 2} .2323114{col 68}{space 4} -.309793{col 81}{space 3}  .600851
{txt}{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                     delta{col 28}{c |}{res}{space 2} 1.156651{col 40}{space 2} .2687033{col 68}{space 4} .7335988{col 81}{space 3}  1.82367
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. **************
. 
. // MODELS FOR TABLE S-4
. 
. // Now for 3-way interactions
. 
. // Urban
. 
. nbreg agv c.agvy1_spatlag##c.urban##c.mobile internet agvy1_ylag ///
> repress_lag polity polity2 ln_gdppc ln_pop ethnic election ///
> percent_pop_refugee i.year, nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      470
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}27{txt})   =  {res}  2870.19
{txt}Log pseudolikelihood = {res}-363.54254                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 98:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 33}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 34}{c |}{col 46}    Robust
{col 1}                             agv{col 34}{c |}      Coef.{col 46}   Std. Err.{col 58}      z{col 66}   P>|z|{col 74}     [95% Con{col 87}f. Interval]
{hline 33}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 19}agvy1_spatlag {c |}{col 34}{res}{space 2}-.0782497{col 46}{space 2} .2366535{col 57}{space 1}   -0.33{col 66}{space 3}0.741{col 74}{space 4} -.542082{col 87}{space 3} .3855826
{txt}{space 27}urban {c |}{col 34}{res}{space 2} .0063773{col 46}{space 2} .0155374{col 57}{space 1}    0.41{col 66}{space 3}0.681{col 74}{space 4}-.0240755{col 87}{space 3} .0368301
{txt}{space 32} {c |}
{space 9}c.agvy1_spatlag#c.urban {c |}{col 34}{res}{space 2} .0017216{col 46}{space 2} .0056942{col 57}{space 1}    0.30{col 66}{space 3}0.762{col 74}{space 4}-.0094388{col 87}{space 3}  .012882
{txt}{space 32} {c |}
{space 26}mobile {c |}{col 34}{res}{space 2} .0265972{col 46}{space 2} .0252215{col 57}{space 1}    1.05{col 66}{space 3}0.292{col 74}{space 4} -.022836{col 87}{space 3} .0760305
{txt}{space 32} {c |}
{space 8}c.agvy1_spatlag#c.mobile {c |}{col 34}{res}{space 2}-.0062636{col 46}{space 2} .0065715{col 57}{space 1}   -0.95{col 66}{space 3}0.341{col 74}{space 4}-.0191434{col 87}{space 3} .0066163
{txt}{space 32} {c |}
{space 16}c.urban#c.mobile {c |}{col 34}{res}{space 2}-.0007875{col 46}{space 2} .0003747{col 57}{space 1}   -2.10{col 66}{space 3}0.036{col 74}{space 4}-.0015218{col 87}{space 3}-.0000532
{txt}{space 32} {c |}
c.agvy1_spatlag#c.urban#c.mobile {c |}{col 34}{res}{space 2}   .00022{col 46}{space 2}  .000123{col 57}{space 1}    1.79{col 66}{space 3}0.074{col 74}{space 4}-.0000211{col 87}{space 3} .0004611
{txt}{space 32} {c |}
{space 24}internet {c |}{col 34}{res}{space 2} .0372971{col 46}{space 2} .0177559{col 57}{space 1}    2.10{col 66}{space 3}0.036{col 74}{space 4} .0024961{col 87}{space 3}  .072098
{txt}{space 22}agvy1_ylag {c |}{col 34}{res}{space 2}  1.03876{col 46}{space 2} .1547272{col 57}{space 1}    6.71{col 66}{space 3}0.000{col 74}{space 4} .7355006{col 87}{space 3}  1.34202
{txt}{space 21}repress_lag {c |}{col 34}{res}{space 2} .3240874{col 46}{space 2} .2999015{col 57}{space 1}    1.08{col 66}{space 3}0.280{col 74}{space 4}-.2637088{col 87}{space 3} .9118836
{txt}{space 26}polity {c |}{col 34}{res}{space 2} .0120846{col 46}{space 2} .0324245{col 57}{space 1}    0.37{col 66}{space 3}0.709{col 74}{space 4}-.0514662{col 87}{space 3} .0756353
{txt}{space 25}polity2 {c |}{col 34}{res}{space 2}-.0015768{col 46}{space 2} .0057784{col 57}{space 1}   -0.27{col 66}{space 3}0.785{col 74}{space 4}-.0129022{col 87}{space 3} .0097486
{txt}{space 24}ln_gdppc {c |}{col 34}{res}{space 2}-.1686642{col 46}{space 2} .2422767{col 57}{space 1}   -0.70{col 66}{space 3}0.486{col 74}{space 4}-.6435178{col 87}{space 3} .3061895
{txt}{space 26}ln_pop {c |}{col 34}{res}{space 2}  .269911{col 46}{space 2} .1479986{col 57}{space 1}    1.82{col 66}{space 3}0.068{col 74}{space 4}-.0201608{col 87}{space 3} .5599829
{txt}{space 26}ethnic {c |}{col 34}{res}{space 2} .5126325{col 46}{space 2}  .490799{col 57}{space 1}    1.04{col 66}{space 3}0.296{col 74}{space 4}-.4493158{col 87}{space 3} 1.474581
{txt}{space 24}election {c |}{col 34}{res}{space 2} .1941542{col 46}{space 2} .2039672{col 57}{space 1}    0.95{col 66}{space 3}0.341{col 74}{space 4}-.2056143{col 87}{space 3} .5939226
{txt}{space 13}percent_pop_refugee {c |}{col 34}{res}{space 2} 4.366373{col 46}{space 2} 16.21607{col 57}{space 1}    0.27{col 66}{space 3}0.788{col 74}{space 4}-27.41655{col 87}{space 3} 36.14929
{txt}{space 32} {c |}
{space 28}year {c |}
{space 27}2002  {c |}{col 34}{res}{space 2} .8809161{col 46}{space 2} .7330579{col 57}{space 1}    1.20{col 66}{space 3}0.229{col 74}{space 4} -.555851{col 87}{space 3} 2.317683
{txt}{space 27}2003  {c |}{col 34}{res}{space 2} 1.019886{col 46}{space 2} .6640601{col 57}{space 1}    1.54{col 66}{space 3}0.125{col 74}{space 4}-.2816479{col 87}{space 3}  2.32142
{txt}{space 27}2004  {c |}{col 34}{res}{space 2} 1.354401{col 46}{space 2} .7811427{col 57}{space 1}    1.73{col 66}{space 3}0.083{col 74}{space 4}-.1766108{col 87}{space 3} 2.885412
{txt}{space 27}2005  {c |}{col 34}{res}{space 2} 1.513588{col 46}{space 2} .6551372{col 57}{space 1}    2.31{col 66}{space 3}0.021{col 74}{space 4} .2295432{col 87}{space 3} 2.797634
{txt}{space 27}2006  {c |}{col 34}{res}{space 2} 1.824336{col 46}{space 2} .7292767{col 57}{space 1}    2.50{col 66}{space 3}0.012{col 74}{space 4} .3949798{col 87}{space 3} 3.253692
{txt}{space 27}2007  {c |}{col 34}{res}{space 2} .9487676{col 46}{space 2} .6644434{col 57}{space 1}    1.43{col 66}{space 3}0.153{col 74}{space 4}-.3535176{col 87}{space 3} 2.251053
{txt}{space 27}2008  {c |}{col 34}{res}{space 2} 1.149418{col 46}{space 2} .6596683{col 57}{space 1}    1.74{col 66}{space 3}0.081{col 74}{space 4}-.1435083{col 87}{space 3} 2.442344
{txt}{space 27}2009  {c |}{col 34}{res}{space 2} 1.157213{col 46}{space 2}  .899772{col 57}{space 1}    1.29{col 66}{space 3}0.198{col 74}{space 4}-.6063078{col 87}{space 3} 2.920734
{txt}{space 27}2010  {c |}{col 34}{res}{space 2} 1.710978{col 46}{space 2} .8171099{col 57}{space 1}    2.09{col 66}{space 3}0.036{col 74}{space 4} .1094718{col 87}{space 3} 3.312484
{txt}{space 27}2011  {c |}{col 34}{res}{space 2} 1.391968{col 46}{space 2} .8265391{col 57}{space 1}    1.68{col 66}{space 3}0.092{col 74}{space 4}-.2280193{col 87}{space 3} 3.011954
{txt}{space 32} {c |}
{space 27}_cons {c |}{col 34}{res}{space 2}-6.688126{col 46}{space 2} 2.190834{col 57}{space 1}   -3.05{col 66}{space 3}0.002{col 74}{space 4}-10.98208{col 87}{space 3}-2.394171
{txt}{hline 33}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                        /lndelta {c |}{col 34}{res}{space 2} .2448234{col 46}{space 2} .1931944{col 74}{space 4}-.1338306{col 87}{space 3} .6234775
{txt}{hline 33}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                           delta{col 34}{c |}{res}{space 2} 1.277396{col 46}{space 2} .2467857{col 74}{space 4} .8747382{col 87}{space 3} 1.865404
{txt}{hline 33}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Affluence
. 
. nbreg agv c.agvy1_spatlag##c.ln_gdppc##c.mobile internet urban agvy1_ylag ///
> repress_lag polity polity2 ln_pop ethnic election percent_pop_refugee ///
> i.year, nolog cluster(ccode) dispersion(constant) 
{res}
{txt}Negative binomial regression                      Number of obs   =  {res}      470
{txt}Dispersion           = {res}constant                   {txt}Wald chi2({res}27{txt})   =  {res}  3947.15
{txt}Log pseudolikelihood = {res}-360.51427                 {txt}Prob > chi2     =  {res}   0.0000

{txt}{ralign 93:(Std. Err. adjusted for {res:44} clusters in ccode)}
{hline 28}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 29}{c |}{col 41}    Robust
{col 1}                        agv{col 29}{c |}      Coef.{col 41}   Std. Err.{col 53}      z{col 61}   P>|z|{col 69}     [95% Con{col 82}f. Interval]
{hline 28}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}agvy1_spatlag {c |}{col 29}{res}{space 2}-.6227218{col 41}{space 2} .9280249{col 52}{space 1}   -0.67{col 61}{space 3}0.502{col 69}{space 4}-2.441617{col 82}{space 3} 1.196174
{txt}{space 19}ln_gdppc {c |}{col 29}{res}{space 2}-.3406275{col 41}{space 2} .4527454{col 52}{space 1}   -0.75{col 61}{space 3}0.452{col 69}{space 4}-1.227992{col 82}{space 3} .5467371
{txt}{space 27} {c |}
{space 1}c.agvy1_spatlag#c.ln_gdppc {c |}{col 29}{res}{space 2} .1158168{col 41}{space 2} .1467773{col 52}{space 1}    0.79{col 61}{space 3}0.430{col 69}{space 4}-.1718613{col 82}{space 3}  .403495
{txt}{space 27} {c |}
{space 21}mobile {c |}{col 29}{res}{space 2} .1004512{col 41}{space 2} .0521888{col 52}{space 1}    1.92{col 61}{space 3}0.054{col 69}{space 4} -.001837{col 82}{space 3} .2027394
{txt}{space 27} {c |}
{space 3}c.agvy1_spatlag#c.mobile {c |}{col 29}{res}{space 2}-.0319568{col 41}{space 2} .0185661{col 52}{space 1}   -1.72{col 61}{space 3}0.085{col 69}{space 4}-.0683457{col 82}{space 3} .0044322
{txt}{space 27} {c |}
{space 8}c.ln_gdppc#c.mobile {c |}{col 29}{res}{space 2} -.014089{col 41}{space 2} .0070034{col 52}{space 1}   -2.01{col 61}{space 3}0.044{col 69}{space 4}-.0278154{col 82}{space 3}-.0003626
{txt}{space 27} {c |}
{space 1}c.agvy1_spatlag#c.ln_gdppc#{c |}
{space 19}c.mobile {c |}{col 29}{res}{space 2} .0043861{col 41}{space 2} .0025774{col 52}{space 1}    1.70{col 61}{space 3}0.089{col 69}{space 4}-.0006656{col 82}{space 3} .0094378
{txt}{space 27} {c |}
{space 19}internet {c |}{col 29}{res}{space 2} .0290994{col 41}{space 2} .0191313{col 52}{space 1}    1.52{col 61}{space 3}0.128{col 69}{space 4}-.0083973{col 82}{space 3} .0665961
{txt}{space 22}urban {c |}{col 29}{res}{space 2} .0062347{col 41}{space 2} .0116913{col 52}{space 1}    0.53{col 61}{space 3}0.594{col 69}{space 4}-.0166797{col 82}{space 3} .0291491
{txt}{space 17}agvy1_ylag {c |}{col 29}{res}{space 2} 1.080785{col 41}{space 2} .1416152{col 52}{space 1}    7.63{col 61}{space 3}0.000{col 69}{space 4} .8032242{col 82}{space 3} 1.358346
{txt}{space 16}repress_lag {c |}{col 29}{res}{space 2} .3229562{col 41}{space 2} .3100222{col 52}{space 1}    1.04{col 61}{space 3}0.298{col 69}{space 4}-.2846762{col 82}{space 3} .9305887
{txt}{space 21}polity {c |}{col 29}{res}{space 2} .0164991{col 41}{space 2} .0324053{col 52}{space 1}    0.51{col 61}{space 3}0.611{col 69}{space 4}-.0470141{col 82}{space 3} .0800123
{txt}{space 20}polity2 {c |}{col 29}{res}{space 2} .0019877{col 41}{space 2} .0062996{col 52}{space 1}    0.32{col 61}{space 3}0.752{col 69}{space 4}-.0103592{col 82}{space 3} .0143347
{txt}{space 21}ln_pop {c |}{col 29}{res}{space 2} .3357221{col 41}{space 2} .1622593{col 52}{space 1}    2.07{col 61}{space 3}0.039{col 69}{space 4} .0176998{col 82}{space 3} .6537445
{txt}{space 21}ethnic {c |}{col 29}{res}{space 2} .1614554{col 41}{space 2} .6045781{col 52}{space 1}    0.27{col 61}{space 3}0.789{col 69}{space 4}-1.023496{col 82}{space 3} 1.346407
{txt}{space 19}election {c |}{col 29}{res}{space 2} .1514964{col 41}{space 2} .2169795{col 52}{space 1}    0.70{col 61}{space 3}0.485{col 69}{space 4}-.2737756{col 82}{space 3} .5767684
{txt}{space 8}percent_pop_refugee {c |}{col 29}{res}{space 2}-.8480463{col 41}{space 2}  15.1749{col 52}{space 1}   -0.06{col 61}{space 3}0.955{col 69}{space 4}-30.59031{col 82}{space 3} 28.89422
{txt}{space 27} {c |}
{space 23}year {c |}
{space 22}2002  {c |}{col 29}{res}{space 2} .8559351{col 41}{space 2} .7547265{col 52}{space 1}    1.13{col 61}{space 3}0.257{col 69}{space 4}-.6233016{col 82}{space 3} 2.335172
{txt}{space 22}2003  {c |}{col 29}{res}{space 2} .9596138{col 41}{space 2} .6692717{col 52}{space 1}    1.43{col 61}{space 3}0.152{col 69}{space 4}-.3521346{col 82}{space 3} 2.271362
{txt}{space 22}2004  {c |}{col 29}{res}{space 2} 1.287926{col 41}{space 2} .7978323{col 52}{space 1}    1.61{col 61}{space 3}0.106{col 69}{space 4}-.2757963{col 82}{space 3} 2.851649
{txt}{space 22}2005  {c |}{col 29}{res}{space 2} 1.369143{col 41}{space 2} .6682325{col 52}{space 1}    2.05{col 61}{space 3}0.040{col 69}{space 4} .0594309{col 82}{space 3} 2.678854
{txt}{space 22}2006  {c |}{col 29}{res}{space 2} 1.621141{col 41}{space 2} .7521299{col 52}{space 1}    2.16{col 61}{space 3}0.031{col 69}{space 4} .1469929{col 82}{space 3} 3.095288
{txt}{space 22}2007  {c |}{col 29}{res}{space 2} .7739315{col 41}{space 2}  .695621{col 52}{space 1}    1.11{col 61}{space 3}0.266{col 69}{space 4}-.5894606{col 82}{space 3} 2.137324
{txt}{space 22}2008  {c |}{col 29}{res}{space 2} .9811065{col 41}{space 2} .7024451{col 52}{space 1}    1.40{col 61}{space 3}0.163{col 69}{space 4}-.3956605{col 82}{space 3} 2.357874
{txt}{space 22}2009  {c |}{col 29}{res}{space 2} 1.024441{col 41}{space 2} .9094018{col 52}{space 1}    1.13{col 61}{space 3}0.260{col 69}{space 4}-.7579537{col 82}{space 3} 2.806836
{txt}{space 22}2010  {c |}{col 29}{res}{space 2} 1.666494{col 41}{space 2} .8582873{col 52}{space 1}    1.94{col 61}{space 3}0.052{col 69}{space 4}-.0157182{col 82}{space 3} 3.348706
{txt}{space 22}2011  {c |}{col 29}{res}{space 2} 1.267788{col 41}{space 2} .8774558{col 52}{space 1}    1.44{col 61}{space 3}0.149{col 69}{space 4}-.4519935{col 82}{space 3}  2.98757
{txt}{space 27} {c |}
{space 22}_cons {c |}{col 29}{res}{space 2}-6.646081{col 41}{space 2} 2.325593{col 52}{space 1}   -2.86{col 61}{space 3}0.004{col 69}{space 4}-11.20416{col 82}{space 3}-2.088002
{txt}{hline 28}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                   /lndelta {c |}{col 29}{res}{space 2} .1436335{col 41}{space 2} .2219031{col 69}{space 4}-.2912887{col 82}{space 3} .5785557
{txt}{hline 28}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                      delta{col 29}{c |}{res}{space 2} 1.154461{col 41}{space 2} .2561785{col 69}{space 4} .7472999{col 82}{space 3} 1.783461
{txt}{hline 28}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. cap log close
{smcl}
{com}{sf}{ul off}